Ejemplo n.º 1
0
            public override void Execute(object parameter)
            {
                var window = new ReformWindow(vm.line, vm.gameInfo);

                window.ShowDialog();
                vm.InvokeAllNotify();
            }
Ejemplo n.º 2
0
        public ReformViewModel(ReformWindow window, Line line, GameInfo gameInfo)
        {
            this.window   = window;
            this.Line     = line;
            this.gameInfo = gameInfo;

            this.SpeedUp  = new SpeedUpCommand(this);
            this.Hidenka  = new HidenkaCommand(this);
            this.Denka    = new DenkaCommand(this);
            this.Narrow   = new NarrowCommand(this);
            this.Expanse  = new ExpanseCommand(this);
            this.Addition = new AdditionCommand(this);
            this.Remove   = new RemoveCommand(this);
            this.Taihisen = new TaihisenCommand(this);
            this.Cancel   = new CancelCommand(this);
        }