Esempio n. 1
0
 private void ExecuteAddEntryCommand(object parameter)
 {
     try
     {
         ManningTableEntryViewModel viewModel = new ManningTableEntryViewModel();
         var result = _viewFactory.ShowDialog(viewModel);
         if (viewModel.ManningTableEntry != null)
         {
             ManningTable.Add(viewModel.ManningTableEntry);
         }
     }
     catch (Exception ex)
     {
         ShowExceptions(ex);
     }
 }
Esempio n. 2
0
        private void ExecuteEditEntryCommand(object parameter)
        {
            try
            {
                ManningTableEntryViewModel viewModel = new ManningTableEntryViewModel(SelectedManningTableEntry);
                _viewFactory.ShowDialog(viewModel);
            }
            catch (Exception ex)
            {
                ShowExceptions(ex);
            }


            //ManningTableEntryView view = new ManningTableEntryView();
            //view.DataContext = viewModel;
            //view.ShowDialog();
        }