void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DrawCli = ((DrawCli.MainWindow)(target)); return; case 2: this.menu_New = ((System.Windows.Controls.MenuItem)(target)); return; case 3: this.menu_Open = ((System.Windows.Controls.MenuItem)(target)); return; case 4: this.menu_Save = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.menu_Recent = ((System.Windows.Controls.MenuItem)(target)); return; case 6: this.menu_Exit = ((System.Windows.Controls.MenuItem)(target)); return; case 7: this.menu_SelectAll = ((System.Windows.Controls.MenuItem)(target)); return; case 8: this.menu_UnSelectAll = ((System.Windows.Controls.MenuItem)(target)); return; case 9: this.menu_Back = ((System.Windows.Controls.MenuItem)(target)); return; case 10: this.menu_Forward = ((System.Windows.Controls.MenuItem)(target)); return; case 11: this.menu_Properties = ((System.Windows.Controls.MenuItem)(target)); return; case 12: this.menu_Line = ((System.Windows.Controls.MenuItem)(target)); return; case 13: this.menu_Rect = ((System.Windows.Controls.MenuItem)(target)); return; case 14: this.menu_Ellipse = ((System.Windows.Controls.MenuItem)(target)); return; case 15: this.menu_Sketch = ((System.Windows.Controls.MenuItem)(target)); return; case 16: this.menu_About = ((System.Windows.Controls.MenuItem)(target)); return; case 17: this.Btn_New = ((System.Windows.Controls.Button)(target)); return; case 18: this.Btn_Open = ((System.Windows.Controls.Button)(target)); return; case 19: this.Btn_Save = ((System.Windows.Controls.Button)(target)); return; case 20: this.Btn_Pointer = ((System.Windows.Controls.Button)(target)); return; case 21: this.Btn_Line = ((System.Windows.Controls.Button)(target)); return; case 22: this.Btn_Rect = ((System.Windows.Controls.Button)(target)); return; case 23: this.Btn_Ellipse = ((System.Windows.Controls.Button)(target)); return; case 24: this.Btn_Sketch = ((System.Windows.Controls.Button)(target)); return; case 25: this.Btn_Properties = ((System.Windows.Controls.Button)(target)); return; case 26: this.Btn_Help = ((System.Windows.Controls.Button)(target)); return; case 27: this.btn_Back = ((System.Windows.Controls.Button)(target)); return; case 28: this.Btn_Forward = ((System.Windows.Controls.Button)(target)); return; case 29: this.btn_Clear = ((System.Windows.Controls.Button)(target)); return; case 30: this.MyBoard = ((System.Windows.Controls.Canvas)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Constructor for the new window /// </summary> /// <param name="_main"></param> public setProperties(MainWindow _main) { Selectfrom_Window = _main; _thicknessRange.AddRange(Enumerable.Range(0, 100).ToArray()); InitializeComponent(); }