예제 #1
0
 public SimplePadViewModel()
 {
     CutCommand           = new DevExpress.Mvvm.DelegateCommand <TextBox>(Cut, CanCut);
     CopyCommand          = new DevExpress.Mvvm.DelegateCommand <TextBox>(Copy, CanCopy);
     PasteCommand         = new DevExpress.Mvvm.DelegateCommand <TextBox>(Paste, CanPaste);
     DeleteCommand        = new DevExpress.Mvvm.DelegateCommand <TextBox>(Delete, CanDelete);
     SelectAllCommand     = new DevExpress.Mvvm.DelegateCommand <TextBox>(SelectAll, CanSelectAll);
     TextAlignmentCommand = new DevExpress.Mvvm.DelegateCommand <TextAlignment>(SetTextAlignment);
 }
예제 #2
0
 public NumericMaskViewModel()
 {
     OnEditorGotFocusCommand = new DelegateCommand <object>(OnEditorGotFocus);
     OnLoadedCommand         = new DelegateCommand(OnLoaded);
     OnUnloadedCommand       = new DelegateCommand(OnUnloaded);
     timer = new DispatcherTimer()
     {
         Interval = new TimeSpan(0, 0, 0, 2, 0)
     };
     NegativeAlternativeValue = 399.9;
 }