Пример #1
0
        void Timer_Elapsed(object sender, EventArgs e)
        {
            timer.Stop();
            processingCount = 1;             // only check for additional changes AFTER this point to restart the timer
            var code = getCode();

            if (!string.IsNullOrEmpty(code))
            {
                designPanel?.Update(code);
            }
        }
Пример #2
0
        //Stopwatch sw = new Stopwatch();

        void Timer_Elapsed(object sender, EventArgs e)
        {
            timer.Stop();
            //sw.Start();
            var code = getCode();

            if (!string.IsNullOrEmpty(code))
            {
                designPanel?.Update(code);
            }
        }
Пример #3
0
 public void Update(string code)
 {
     designPanel.Update(code);
 }