コード例 #1
0
 public DocumentViewModel()
 {
     _commentViewModel = SimpleIoc.Default.GetInstance <CommentsViewModel>();
     AddCommand        = new RelayCommand(AddRepository, () => true);
     DeleteCommand     = new RelayCommand(DeleteRepository, () => SelectedDocument != null);
     EditCommand       = new RelayCommand(EditRepository, () => SelectedDocument != null);
 }
コード例 #2
0
 public DocumentViewModel()
 {
     _commentViewModel = SimpleIoc.Default.GetInstance<CommentsViewModel>();
     AddCommand = new RelayCommand(AddRepository,() => true);
     DeleteCommand = new RelayCommand(DeleteRepository, () => SelectedDocument != null);
     EditCommand = new RelayCommand(EditRepository, () => SelectedDocument != null);
 }