Exemple #1
0
 private void InitializeCommands()
 {
     OpenFileCommand = new OwlCommand
     {
         CanExecuteDelegate = x => dialogSvc != null,
         ExecuteDelegate = x=> OpenFile()
     };
 }
 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()
     };
 }