private void AdminPrivilage() { if (status == 99 | status == 1) { Window3 okno3 = new Window3(status); okno3.Show(); Hide(); } else { Creating.Content = "Brak uprawnień!"; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Modyfikacje = ((WPF_test.Window3)(target)); #line 8 "..\..\Window3.xaml" this.Modyfikacje.Closing += new System.ComponentModel.CancelEventHandler(this.Manager_FormClosing); #line default #line hidden return; case 2: this.Create_NewUser = ((System.Windows.Controls.Button)(target)); #line 16 "..\..\Window3.xaml" this.Create_NewUser.Click += new System.Windows.RoutedEventHandler(this.Create_user); #line default #line hidden return; case 3: this.New_login = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.Login_exist = ((System.Windows.Controls.Label)(target)); return; case 5: this.Delete_user = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\Window3.xaml" this.Delete_user.Click += new System.Windows.RoutedEventHandler(this.Delete_user_Click); #line default #line hidden return; case 6: this.users_box = ((System.Windows.Controls.ListBox)(target)); return; case 7: this.New_password = ((System.Windows.Controls.PasswordBox)(target)); return; case 8: this.Clear = ((System.Windows.Controls.Button)(target)); #line 25 "..\..\Window3.xaml" this.Clear.Click += new System.Windows.RoutedEventHandler(this.Clear_click); #line default #line hidden return; case 9: this.Back = ((System.Windows.Controls.Button)(target)); #line 26 "..\..\Window3.xaml" this.Back.Click += new System.Windows.RoutedEventHandler(this.LogOut); #line default #line hidden return; case 10: this.Change_psw = ((System.Windows.Controls.Button)(target)); #line 27 "..\..\Window3.xaml" this.Change_psw.Click += new System.Windows.RoutedEventHandler(this.Change_password); #line default #line hidden return; case 11: this.ranga_box = ((System.Windows.Controls.GroupBox)(target)); return; case 12: this.radio_admin = ((System.Windows.Controls.RadioButton)(target)); return; case 13: this.radio_mod = ((System.Windows.Controls.RadioButton)(target)); return; case 14: this.radio_user = ((System.Windows.Controls.RadioButton)(target)); return; } this._contentLoaded = true; }