예제 #1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public RequestsController()
 {
     ApproveRequestCommand = new DelegateCommand(args => SelectedItem.ApproveRequest(),
                                                 args => SelectedItem != null && SelectedItem.CanApproveDeclineRequest);
     DeclineRequestCommand = new DelegateCommand(args => SelectedItem.DeclineRequest(),
                                                 args => SelectedItem != null && SelectedItem.CanApproveDeclineRequest);
 }