示例#1
0
        private void Plot_Button_Click(object sender, RoutedEventArgs e)
        {
            Button bt = sender as Button;

            if (bt.Content.ToString() == "开始绘图")
            {
                bt.Content = "停止绘图";
                cp.plotStart(motors, statusBar, statusInfoTextBlock);
            }
            else
            {
                cp.plotStop();
                bt.Content = "开始绘图";
            }
        }
示例#2
0
        private void Plot_Button_Click(object sender, RoutedEventArgs e)
        {
            Button bt = sender as Button;

            if (bt.Content.ToString() == "Start Plot")
            {
                switch_Button.IsEnabled = true;
                bt.Content = "Stop Plot";
                cp.plotStart(motors, statusBar, statusInfoTextBlock);
            }
            else
            {
                cp.plotStop();
                bt.Content = "Start Plot";
            }
        }