private void button_back_Click(object sender, RoutedEventArgs e) { this.Close(); Window tmp = new manegerwind(); tmp.ShowDialog(); }
//button private void GoBotton_Click(object sender, RoutedEventArgs e) { if (password_box.Password == x.code) { this.Close(); Window tmp = new manegerwind(); tmp.ShowDialog(); } else { MessageBox.Show("הסיסמה שגויה,\n נסה שוב!", "ERROR", MessageBoxButton.OK, MessageBoxImage.Error); } }