//Add User private void AddUserBtn_MouseDown(object sender, MouseButtonEventArgs e) { AddUser AU = new AddUser(); AU.ShowDialog(); if (Public.UserAdded) { MessageBox.Show("User added successfully!"); AddUser(Public.NewUserName); } Public.UserAdded = false; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AddUserWindow = ((SecureMe.AddUser)(target)); return; case 2: this.UserNameLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.UsernameBox = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.UserPasswordBox = ((System.Windows.Controls.PasswordBox)(target)); return; case 5: this.StandardTypeBtn = ((System.Windows.Controls.RadioButton)(target)); return; case 6: this.PasswordLabel = ((System.Windows.Controls.Label)(target)); return; case 7: this.AdministratorTypeBtn = ((System.Windows.Controls.RadioButton)(target)); return; case 8: this.AccountTypeLabel = ((System.Windows.Controls.Label)(target)); return; case 9: this.NoPassChangeCheck = ((System.Windows.Controls.CheckBox)(target)); return; case 10: this.SubmitBtn = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\AddUser.xaml" this.SubmitBtn.Click += new System.Windows.RoutedEventHandler(this.SubmitBtn_Click); #line default #line hidden return; } this._contentLoaded = true; }