private void Button1_Click(object sender, RoutedEventArgs e) { kv2 f = new kv2(); this.Hide(); f.ShowDialog(); this.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MyWindow = ((Kvadro.kv2)(target)); #line 8 "..\..\kv2 - Копировать.xaml" this.MyWindow.Closing += new System.ComponentModel.CancelEventHandler(this.MyWindow_Closing); #line default #line hidden return; case 2: #line 35 "..\..\kv2 - Копировать.xaml" ((System.Windows.Controls.TextBlock)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseLeftButtonDown); #line default #line hidden return; case 3: this.kvadroGrid = ((System.Windows.Controls.DataGrid)(target)); #line 42 "..\..\kv2 - Копировать.xaml" this.kvadroGrid.CurrentCellChanged += new System.EventHandler <System.EventArgs>(this.kvadroGrid_CurrentCellChanged); #line default #line hidden return; case 4: #line 44 "..\..\kv2 - Копировать.xaml" ((System.Windows.Controls.DataGridTextColumn)(target)).PastingCellClipboardContent += new System.EventHandler <System.Windows.Controls.DataGridCellClipboardEventArgs>(this.DataGridTextColumn_PastingCellClipboardContent); #line default #line hidden return; case 5: #line 55 "..\..\kv2 - Копировать.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 6: this.Delete = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\kv2 - Копировать.xaml" this.Delete.Click += new System.Windows.RoutedEventHandler(this.Delete_Click); #line default #line hidden return; case 7: this.Exit = ((System.Windows.Controls.Button)(target)); #line 57 "..\..\kv2 - Копировать.xaml" this.Exit.Click += new System.Windows.RoutedEventHandler(this.Exit_Click); #line default #line hidden return; case 8: this.id = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.name = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.start = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.stop = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.chief = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.cost = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.AddBtn = ((System.Windows.Controls.Button)(target)); #line 64 "..\..\kv2 - Копировать.xaml" this.AddBtn.Click += new System.Windows.RoutedEventHandler(this.AddBtn_Click); #line default #line hidden return; case 15: this.ComboINN = ((System.Windows.Controls.ComboBox)(target)); return; } this._contentLoaded = true; }