Пример #1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public MainWindowViewModel()
 {
     this.SetRectAdditionModeCommand = new DelegateCommand(
         SetRectAdditionMode, () => true);
     this.RemoveRectCommand = new DelegateCommand(
         appContext.UIData.RemoveRect, () => ElementCollection.Any(e => e.IsSelected));
     this.SelectRectCommand = new DelegateCommand <PlaceableElement>(
         SelectRect, (obj) => true);
     this.DeselectAllRectCommand = new DelegateCommand(
         DeselectAllRect, () => true);
     this.AddElementEvent    = new AddElementEventHandler(appContext.UIData.AddRect);
     this.GridSize           = 10;
     this.IsRectAdditionMode = false;
 }