예제 #1
0
 private void InitializeCommands()
 {
     OpenFileCommand = new OwlCommand
     {
         CanExecuteDelegate = x => dialogSvc != null,
         ExecuteDelegate = x=> OpenFile()
     };
 }
예제 #2
0
 private void InitializeCommands()
 {
     AddPersonCommand = new OwlCommand
     {
     CanExecuteDelegate = x => addressBook != null,// && addressBook.IsDatabaseInitialized,
     ExecuteDelegate = x => AddPerson()
     };
     AddCompanyCommand = new OwlCommand
     {
     CanExecuteDelegate = x => addressBook != null, // && addressBook.IsDatabaseInitialized,
     ExecuteDelegate = x => AddCompany()
     };
 }