void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Informacje = ((WPF_test.Window2)(target)); #line 8 "..\..\Window2.xaml" this.Informacje.Closing += new System.ComponentModel.CancelEventHandler(this.Manager_FormClosing); #line default #line hidden return; case 2: this.LogOut = ((System.Windows.Controls.Button)(target)); #line 16 "..\..\Window2.xaml" this.LogOut.Click += new System.Windows.RoutedEventHandler(this.Wyloguj_click); #line default #line hidden return; case 3: this.In_psw = ((System.Windows.Controls.Label)(target)); return; case 4: this.Ranga = ((System.Windows.Controls.Label)(target)); return; case 5: this.Uzytkownik = ((System.Windows.Controls.Label)(target)); return; case 6: this.Creating = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\Window2.xaml" this.Creating.Click += new System.Windows.RoutedEventHandler(this.Creating_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void AuthorizeUser() { password = Haslo_box.Password; login = Login_box.Text; bool score = Lista.getInstance.Checking(login, password); if (!score) { In_psw.Content = "Nieprawidłowe hasło!"; Haslo_box.Password = ""; } else { Window2 okno2 = new Window2(login); okno2.Show(); Hide(); } }
private void button3_Click(object sender, RoutedEventArgs e) { Window2 w = new Window2(); w.ShowDialog(); }