コード例 #1
0
ファイル: PersonViewModel.cs プロジェクト: karleule/OwlCalc
 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()
     };
 }