Beispiel #1
0
        public ShogiWindow()
        {
            InitializeComponent();
            ShogiControl.InitializeBindings(this);

            EffectManager = new EffectManager()
            {
                Background = this.visualBackground,
            };

            ShogiControl.EffectManager = EffectManager;
            DataContext = Global.ShogiModel;

            Global.ShogiWindow = this;
            Closed            += (_, __) => Global.ShogiWindow = null;

            EffectManager.ChangeMoveCount(1);

            this.timer = new FrameTimer(
                30,
                timer_EnterFrame,
                Dispatcher);
            this.timer.Start();
        }