Beispiel #1
0
        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            PaSViewModel pas = (PaSViewModel)ViewModel;

            new WizardView(new WizardViewModel(null)).ShowDialog();

            pas.RefreshProblemList();
        }
Beispiel #2
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            PaSViewModel pas = (PaSViewModel)ViewModel;

            if ((ProblemVO)lstProblems.SelectedItem != null)
            {
                int problemId = ((ProblemVO)lstProblems.SelectedItem).ProblemID;

                WizardViewModel wvm = new WizardViewModel(null);
                wvm.InitializeEdit(problemId);
                new WizardView(wvm).ShowDialog();

                pas.RefreshProblemList();
            }
        }
Beispiel #3
0
 public PaSView(PaSViewModel paSViewModel)
 {
     InitializeComponent();
     DataContext = paSViewModel;
 }