void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.UI = ((TimeArk.ConfigWindow)(target)); return; case 2: this.dataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 3: this.Submit = ((System.Windows.Controls.Button)(target)); #line 67 "..\..\ConfigWindow.xaml" this.Submit.Click += new System.Windows.RoutedEventHandler(this.Submit_Click); #line default #line hidden return; case 4: this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target)); return; case 5: this.All = ((System.Windows.Controls.RadioButton)(target)); #line 123 "..\..\ConfigWindow.xaml" this.All.Click += new System.Windows.RoutedEventHandler(this.All_Click); #line default #line hidden return; case 6: this.Select = ((System.Windows.Controls.RadioButton)(target)); #line 124 "..\..\ConfigWindow.xaml" this.Select.Click += new System.Windows.RoutedEventHandler(this.Select_Click); #line default #line hidden return; case 7: this.StartD = ((System.Windows.Controls.DatePicker)(target)); #line 125 "..\..\ConfigWindow.xaml" this.StartD.CalendarClosed += new System.Windows.RoutedEventHandler(this.StartD_CalendarClosed); #line default #line hidden return; case 8: this.EndD = ((System.Windows.Controls.DatePicker)(target)); #line 126 "..\..\ConfigWindow.xaml" this.EndD.CalendarClosed += new System.Windows.RoutedEventHandler(this.StartD_CalendarClosed); #line default #line hidden return; case 9: this.label = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
private void Config_Click(object sender, RoutedEventArgs e) { ConfigWindow Object = new ConfigWindow(); Object.ShowDialog(); }