public void AddNew() { var NewWindow = new AddStudentWindow(); NewWindow.Top = Application.Current.MainWindow.Top; NewWindow.Left = Application.Current.MainWindow.Left; NewWindow.Show(); }
private void BtnAddStudent_Click(object sender, RoutedEventArgs e) { var addStudentWindow = new AddStudentWindow(); addStudentWindow.Show(); }