How to change type of class C# -


i have class in c# uses mouseeventargs , want call function , makes work without using mouseeventargs. ideas how can that?

private void spatialcontrol_mousedoubleclick(object sender, mousebuttoneventargs e)     {         _camchanged = false;         drawingcontrol.viewport.camera.changed += camera_changed;         drawingcontrol.zoomselected();         drawingcontrol.viewport.camera.changed -= camera_changed;         if (!_camchanged)             drawingcontrol.clipbaseselected(0.15);     } 

and want add

drawingcontrol.viewport.camera.position = new point3d(100, 100, 1); drawingcontrol.viewport.setview(new point3d(-1,-1,-1), new vector3d(1,1,1), new vector3d(1,2,1),5); 

just call handled method method.

public void mymethod() {    // callind event    spatialcontrol_mousedoubleclick(new object(), new mousebuttoneventargs())     // executing other code.    drawingcontrol.viewport.camera.position = new point3d(100, 100, 1);    drawingcontrol.viewport.setview(new point3d(-1,-1,-1), new vector3d(1,1,1), new vector3d(1,2,1),5); } 

Comments