Exemple #1
0
        private void BtnReset_Click(object sender, RoutedEventArgs e)
        {
            if (AppCurrent.IsRunning)
            {
                OperationHelper.ShowTips("请先停止运行!");
                return;
            }

            if (CommunicateControl.CommunicateStop())
            {
                OperationHelper.ShowTips("成功复位!");
                Current.App.RunStatus = TengDa.RunStatus.闲置;
            }
        }
Exemple #2
0
        private void BtnStart_Click(object sender, RoutedEventArgs e)
        {
            if (AppCurrent.IsRunning)
            {
                OperationHelper.ShowTips("系统已经在运行,请勿重复启动!");
                return;
            }

            if (CommunicateControl.CommunicateStart())
            {
                AppCurrent.IsRunning  = true;
                Current.App.RunStatus = TengDa.RunStatus.运行;
                OperationHelper.ShowTips("成功启动运行!");
            }
        }