private void Edit_Click(object sender, RoutedEventArgs e) { EditDialogView handle = new EditDialogView(); handle.ChangeLabelForMember(); if (handle.ShowDialog() == true) { if (handle.FirstInput != handle.SecondInput) { MessageBox.Show("Member ID did not match.Try again.\n", "Warning", MessageBoxButton.OK, MessageBoxImage.Exclamation); return; } FixedDepositEntryView GDEntryObj = new FixedDepositEntryView(); GDEntryObj.SetForEdit(handle.FirstInput); GDEntryObj.SaveMember.Content = "Update Account"; this.NavigationService.Navigate(GDEntryObj); } }
private void AddNew_Click(object sender, RoutedEventArgs e) { GDEntryObj = new FixedDepositEntryView(); memberData.Navigate(GDEntryObj); }