Example #1
0
 public static void Main(string[] args)
 {
     Application.Init ();
     MainWindow win = new MainWindow ();
     win.Title = "Evolutionary Algorithms for C#";
     win.Show ();
     Application.Run ();
 }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((main.MainWindow)(target));

            #line 7 "..\..\MainWindow.xaml"
                this.window.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.window_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.CXWDXX = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.CXWDXX.Click += new System.Windows.RoutedEventHandler(this.CXWDXX_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 34 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_10);

            #line default
            #line hidden
                return;

            case 4:

            #line 35 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_11);

            #line default
            #line hidden
                return;

            case 5:

            #line 36 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_12);

            #line default
            #line hidden
                return;

            case 6:
                this.Image1 = ((System.Windows.Media.ImageBrush)(target));
                return;

            case 7:
                this.listView_first = ((System.Windows.Controls.ListView)(target));

            #line 42 "..\..\MainWindow.xaml"
                this.listView_first.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListView2_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 8:

            #line 66 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_25);

            #line default
            #line hidden
                return;

            case 9:

            #line 67 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_22);

            #line default
            #line hidden
                return;

            case 10:

            #line 68 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_20);

            #line default
            #line hidden
                return;

            case 11:
                this.SQXZWZ = ((System.Windows.Controls.Button)(target));

            #line 69 "..\..\MainWindow.xaml"
                this.SQXZWZ.Click += new System.Windows.RoutedEventHandler(this.Button_Click_15);

            #line default
            #line hidden
                return;

            case 12:
                this.CKSQ = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\MainWindow.xaml"
                this.CKSQ.Click += new System.Windows.RoutedEventHandler(this.Button_Click_16);

            #line default
            #line hidden
                return;

            case 13:

            #line 71 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_19);

            #line default
            #line hidden
                return;

            case 14:

            #line 72 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_14);

            #line default
            #line hidden
                return;

            case 15:
                this.DCWZ = ((System.Windows.Controls.Button)(target));

            #line 73 "..\..\MainWindow.xaml"
                this.DCWZ.Click += new System.Windows.RoutedEventHandler(this.Button_Click_28);

            #line default
            #line hidden
                return;

            case 16:
                this.TJnewWZ = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\MainWindow.xaml"
                this.TJnewWZ.Click += new System.Windows.RoutedEventHandler(this.Button_Click_26);

            #line default
            #line hidden
                return;

            case 17:
                this.BH2 = ((System.Windows.Controls.Button)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.BH2.Click += new System.Windows.RoutedEventHandler(this.Button_Click_17);

            #line default
            #line hidden
                return;

            case 18:
                this.TY2 = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\MainWindow.xaml"
                this.TY2.Click += new System.Windows.RoutedEventHandler(this.Button_Click_18);

            #line default
            #line hidden
                return;

            case 19:
                this.GHXZWZ = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.GHXZWZ.Click += new System.Windows.RoutedEventHandler(this.Button_Click_21);

            #line default
            #line hidden
                return;

            case 20:
                this.BHLY1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.XGWZ = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.XGWZ.Click += new System.Windows.RoutedEventHandler(this.Button_Click_23);

            #line default
            #line hidden
                return;

            case 22:
                this.SCWZ = ((System.Windows.Controls.Button)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.SCWZ.Click += new System.Windows.RoutedEventHandler(this.Button_Click_24);

            #line default
            #line hidden
                return;

            case 23:
                this.dataGrid_Demo2 = ((System.Windows.Controls.DataGrid)(target));

            #line 89 "..\..\MainWindow.xaml"
                this.dataGrid_Demo2.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.dataGrid2_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 24:
                this.CheckBox_AllSelect2 = ((System.Windows.Controls.CheckBox)(target));

            #line 122 "..\..\MainWindow.xaml"
                this.CheckBox_AllSelect2.Click += new System.Windows.RoutedEventHandler(this.CheckBox2_All_SelectClick);

            #line default
            #line hidden
                return;

            case 26:
                this.richTextBoxMain = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 27:
                this.textBoxSend = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.KQQHY = ((System.Windows.Controls.Button)(target));

            #line 169 "..\..\MainWindow.xaml"
                this.KQQHY.Click += new System.Windows.RoutedEventHandler(this.buttonStart2_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.JSQHY = ((System.Windows.Controls.Button)(target));

            #line 170 "..\..\MainWindow.xaml"
                this.JSQHY.Click += new System.Windows.RoutedEventHandler(this.buttonEnd2_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.ListBoxSend = ((System.Windows.Controls.ListBox)(target));
                return;

            case 31:
                this.IP = ((System.Windows.Controls.TextBox)(target));
                return;

            case 32:
                this.DK = ((System.Windows.Controls.TextBox)(target));
                return;

            case 33:
                this.buttonStart3 = ((System.Windows.Controls.Button)(target));

            #line 174 "..\..\MainWindow.xaml"
                this.buttonStart3.Click += new System.Windows.RoutedEventHandler(this.buttonStart3_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.buttonEnd3 = ((System.Windows.Controls.Button)(target));

            #line 175 "..\..\MainWindow.xaml"
                this.buttonEnd3.Click += new System.Windows.RoutedEventHandler(this.buttonEnd3_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.filesend = ((System.Windows.Controls.Button)(target));

            #line 176 "..\..\MainWindow.xaml"
                this.filesend.Click += new System.Windows.RoutedEventHandler(this.button1_file);

            #line default
            #line hidden
                return;

            case 36:
                this.buttonSend = ((System.Windows.Controls.Button)(target));

            #line 177 "..\..\MainWindow.xaml"
                this.buttonSend.Click += new System.Windows.RoutedEventHandler(this.buttonSend_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.buttonSend2 = ((System.Windows.Controls.Button)(target));

            #line 178 "..\..\MainWindow.xaml"
                this.buttonSend2.Click += new System.Windows.RoutedEventHandler(this.buttonSend2_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.SF = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 39:
                this.QF = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 40:
                this.yu_e = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 41:

            #line 196 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 42:
                this.CKSQ2 = ((System.Windows.Controls.Button)(target));

            #line 198 "..\..\MainWindow.xaml"
                this.CKSQ2.Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 43:
                this.TJZJ = ((System.Windows.Controls.Button)(target));

            #line 199 "..\..\MainWindow.xaml"
                this.TJZJ.Click += new System.Windows.RoutedEventHandler(this.Button_Click_13);

            #line default
            #line hidden
                return;

            case 44:

            #line 200 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_5);

            #line default
            #line hidden
                return;

            case 45:
                this.TIANJZJ = ((System.Windows.Controls.Button)(target));

            #line 201 "..\..\MainWindow.xaml"
                this.TIANJZJ.Click += new System.Windows.RoutedEventHandler(this.Button_Click_6);

            #line default
            #line hidden
                return;

            case 46:
                this.bh = ((System.Windows.Controls.Button)(target));

            #line 202 "..\..\MainWindow.xaml"
                this.bh.Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);

            #line default
            #line hidden
                return;

            case 47:
                this.ty = ((System.Windows.Controls.Button)(target));

            #line 203 "..\..\MainWindow.xaml"
                this.ty.Click += new System.Windows.RoutedEventHandler(this.Button_Click_4);

            #line default
            #line hidden
                return;

            case 48:
                this.BHLY = ((System.Windows.Controls.TextBox)(target));
                return;

            case 49:
                this.sc = ((System.Windows.Controls.Button)(target));

            #line 205 "..\..\MainWindow.xaml"
                this.sc.Click += new System.Windows.RoutedEventHandler(this.Button_Click_7);

            #line default
            #line hidden
                return;

            case 50:
                this.listView_4 = ((System.Windows.Controls.ListView)(target));

            #line 206 "..\..\MainWindow.xaml"
                this.listView_4.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListView_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 51:
                this.senduser = ((System.Windows.Controls.TextBox)(target));
                return;

            case 52:
                this.message = ((System.Windows.Controls.TextBox)(target));
                return;

            case 53:

            #line 234 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_9);

            #line default
            #line hidden
                return;

            case 54:

            #line 235 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_8);

            #line default
            #line hidden
                return;

            case 55:
                this.dataGrid_Demo = ((System.Windows.Controls.DataGrid)(target));

            #line 244 "..\..\MainWindow.xaml"
                this.dataGrid_Demo.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.dataGrid_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 56:
                this.CheckBox_AllSelect = ((System.Windows.Controls.CheckBox)(target));

            #line 277 "..\..\MainWindow.xaml"
                this.CheckBox_AllSelect.Click += new System.Windows.RoutedEventHandler(this.CheckBox_All_SelectClick);

            #line default
            #line hidden
                return;

            case 58:
                this.searchcon = ((System.Windows.Controls.TextBox)(target));
                return;

            case 59:
                this.B_search = ((System.Windows.Controls.Button)(target));

            #line 317 "..\..\MainWindow.xaml"
                this.B_search.Click += new System.Windows.RoutedEventHandler(this.B_search_Click);

            #line default
            #line hidden
                return;

            case 60:
                this.B_look = ((System.Windows.Controls.Button)(target));

            #line 318 "..\..\MainWindow.xaml"
                this.B_look.Click += new System.Windows.RoutedEventHandler(this.B_look_Click);

            #line default
            #line hidden
                return;

            case 61:
                this.error = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 62:
                this.ComboBox1 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 63:
                this.listView = ((System.Windows.Controls.ListView)(target));

            #line 321 "..\..\MainWindow.xaml"
                this.listView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListView_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 64:
                this.GJ = ((WMControl.WMTabItem)(target));
                return;

            case 65:

            #line 345 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 66:

            #line 346 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_27);

            #line default
            #line hidden
                return;

            case 67:
                this.WPF = ((System.Windows.Documents.Hyperlink)(target));

            #line 347 "..\..\MainWindow.xaml"
                this.WPF.Click += new System.Windows.RoutedEventHandler(this.TB_refister);

            #line default
            #line hidden
                return;

            case 68:

            #line 348 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MakeIdex_Click);

            #line default
            #line hidden
                return;

            case 69:
                this.test = ((System.Windows.Controls.TextBox)(target));
                return;

            case 70:
                this.username = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 71:

            #line 358 "..\..\MainWindow.xaml"
                ((WMControl.WMButton)(target)).Click += new System.Windows.RoutedEventHandler(this.WMButton_Click_4);

            #line default
            #line hidden
                return;

            case 72:

            #line 370 "..\..\MainWindow.xaml"
                ((WMControl.WMButton)(target)).Click += new System.Windows.RoutedEventHandler(this.WMButton_Click_2);

            #line default
            #line hidden
                return;

            case 73:
                this.information = ((System.Windows.Controls.RichTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }