Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            field = new Field(CanvasApp, CountCells, StackPanelTowers);
            field.AddCells();
            field.AddGate();
            field.AddEnimy();

            System.Windows.Threading.DispatcherTimer dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
            dispatcherTimer.Tick    += dispatcherTimer_Tick;
            dispatcherTimer.Interval = new TimeSpan(100);
            dispatcherTimer.Start();
        }