Ejemplo n.º 1
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            this.button1.IsEnabled = false;
            this.button1.Content   = "已运行";
            workService            = new WorkService();
            workService.LoadDriver(obColl);
            DispatcherTimer dispatcherTimer = new DispatcherTimer();

            dispatcherTimer.Tick    += new EventHandler(timer_Tick);
            dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 100);
            dispatcherTimer.Start();
            //web启动
            workService.StartServer();
        }