/// <summary> /// The function that restarts the form. /// </summary> private void buttonRestartForm_Click(object sender, RoutedEventArgs e) { WindowFormName firstWindow = new WindowFormName(); firstWindow.Show(); this.Close(); }
/// <summary> /// The function of moving to the previous window. /// </summary> private void buttonPrevious_Click(object sender, RoutedEventArgs e) { WindowFormName firstForm = new WindowFormName(_person); firstForm.Show(); this.Close(); }