コード例 #1
0
ファイル: ViewController.cs プロジェクト: lmx01/eagleboost
 public ViewController()
 {
     OkText        = "_OK";
     CancelText    = "_Cancel";
     OkCommand     = new NotifiableCommand(HandleOk, () => CanHandleOk, this);
     CancelCommand = new NotifiableCommand(HandleCancel, () => CanHandleCancel, this);
 }
コード例 #2
0
 public SelectionContainerViewModel()
 {
     Items = new ObservableCollection <DataItem> {
         a, b, c, d, e
     };
     SingleSelectionContainer   = new SingleSelectionContainer <DataItem>(b);
     RadioSelectionContainer    = new RadioSelectionContainer <DataItem>(a);
     MultipleSelectionContainer = new MultipleSelectionContainer <DataItem>(new[] { c, d, e });
     SelectCommand = new NotifiableCommand(HandleSelect, () => true);
     ClearCommand  = new NotifiableCommand(HandleClear, () => true);
 }