private void back_button_Click(object sender, RoutedEventArgs e) { Autorization mainWindow = new Autorization(); this.Hide(); mainWindow.Show(); }
private void enter_Click(object sender, RoutedEventArgs e) { Users users = new Users(); users.Login = register_login.Text; users.Password = register_password.Text; users.First_Name = register_name.Text; users.Sur_Name = register_surname.Text; users.Father_Name = register_fname.Text; context.Users.Add(users); context.SaveChanges(); Autorization window1 = new Autorization(); this.Hide(); window1.Show(); }