void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.wndowAdding = ((_767Project.AddingWindow)(target)); return; case 2: this.txtAdd = ((System.Windows.Controls.TextBox)(target)); #line 10 "..\..\AddingWindow.xaml" this.txtAdd.GotFocus += new System.Windows.RoutedEventHandler(this.txtAdd_GotFocus); #line default #line hidden return; case 3: this.btnAdd = ((System.Windows.Controls.Button)(target)); #line 11 "..\..\AddingWindow.xaml" this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click); #line default #line hidden return; case 4: this.btnCancel = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\AddingWindow.xaml" this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click); #line default #line hidden return; } this._contentLoaded = true; }
/* * Function called when the user selects the add button to add their own program name to hide which is not in the datagrid already */ private void btnPlus_Click(object sender, RoutedEventArgs e) { AddingWindow Add = new AddingWindow(lstProgs); //open the addingwindow form Add.Show(); }