Example #1
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            _mandelBrot = new Mandelbrot();
            _dispatcherTimer = new System.Windows.Threading.DispatcherTimer();
            _dispatcherTimer.Interval = TimeSpan.FromMilliseconds(1.0);
            _dispatcherTimer.Tick += new EventHandler(t_Tick);
            _dispatcherTimer.Start();

            var blockTimer = new System.Windows.Threading.DispatcherTimer();
            blockTimer.Interval = TimeSpan.FromSeconds(10.0);
            blockTimer.Tick += (s, e) =>
                                   {
                                       SwitchBottomStackPanels();
                                   };
            blockTimer.Start();
            SwitchBottomStackPanels();
        }
Example #2
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            _mandelBrot               = new Mandelbrot();
            _dispatcherTimer          = new System.Windows.Threading.DispatcherTimer();
            _dispatcherTimer.Interval = TimeSpan.FromMilliseconds(1.0);
            _dispatcherTimer.Tick    += new EventHandler(t_Tick);
            _dispatcherTimer.Start();

            var blockTimer = new System.Windows.Threading.DispatcherTimer();

            blockTimer.Interval = TimeSpan.FromSeconds(10.0);
            blockTimer.Tick    += (s, e) =>
            {
                SwitchBottomStackPanels();
            };
            blockTimer.Start();
            SwitchBottomStackPanels();
        }