public Main() { InitializeComponent(); this.MinimumSize = this.Size; try { System.Drawing.Icon ico = new System.Drawing.Icon(GetIconFile(@"common\Images\Grid\Icon\sfgrid.ico")); this.Icon = ico; } catch { } window1 = new SplitWindowForm("Window1.xaml", "Code1.rtf"); window1.MdiParent = this; window1.Show(); window2 = new SplitWindowForm("Window2.xaml", "Code2.rtf"); window2.MdiParent = this; window2.Show(); }
public Main() { InitializeComponent(); this.StartPosition = FormStartPosition.CenterScreen; this.MinimumSize = this.Size; try { System.Drawing.Icon ico = new System.Drawing.Icon(GetIconFile(@"common\Images\Grid\Icon\sfgrid1.ico")); this.Icon = ico; } catch { } window1 = new SplitWindowForm("Window1.xaml", "Code1.rtf"); window1.MdiParent = this; window1.Show(); window2 = new SplitWindowForm("Window2.xaml", "Code2.rtf"); window2.MdiParent = this; window2.Show(); this.comboBoxAdv1.SelectedIndexChanged += ComboBoxAdv1_SelectedIndexChanged; this.panel1.SizeChanged += Panel1_SizeChanged; }