public MainWindow()
 {
     Instance = this;
     InitializeComponent();
     OptionTabContainer     = FindName("OptionTabs") as TabControl;
     CommandOptionContainer = FindName("CommandOptionPanel") as Grid;
     MotionOptionTabpage    = FindName("MotionOptionTab") as TabItem;
     MotionOptionContainer  = FindName("MotionOptionPanel") as Grid;
     InfillOptionTabpage    = FindName("InfillOptionTab") as TabItem;
     InfillOptionContainer  = FindName("InfillOptionPanel") as Grid;
     MainController.Initialize();
     InitializeLateBinding();
     CADCanvas.InitializeCanvas();
 }
 public void OnRemove()
 {
     CADCanvas.RemoveShape(Shape);
     CADCanvas.MainCanvas.SizeChanged -= (Shape as EllipseArcCADShape).UpdateControl;
 }
 public void OnAdd()
 {
     CADCanvas.AddShape(Shape);
     CADCanvas.MainCanvas.SizeChanged += (Shape as EllipseArcCADShape).UpdateControl;
 }
Esempio n. 4
0
 public void OnRemove()
 {
     CADCanvas.RemoveShape(Shape);
 }
Esempio n. 5
0
 public void OnAdd()
 {
     CADCanvas.AddShape(Shape);
 }
Esempio n. 6
0
 public void OnAdd()
 {
     CADCanvas.AddShape(Shape);
     CADCanvas.MainCanvas.SizeChanged += (Shape as PolygonCADShape).UpdateControl;
 }