示例#1
0
        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;
                }
                MonthlyDepositEntryView GDEntryObj = new MonthlyDepositEntryView();
                GDEntryObj.SetForEdit(handle.FirstInput);
                GDEntryObj.SaveMember.Content = "Update Account";
                this.NavigationService.Navigate(GDEntryObj);
            }
        }
 private void AddNew_Click(object sender, RoutedEventArgs e)
 {
     GDEntryObj = new MonthlyDepositEntryView();
     memberData.Navigate(GDEntryObj);
 }