Exemple #1
0
        /// <summary>
        /// 更改运行按钮的Content
        /// </summary>
        /// <param name="status"></param>
        private void SetRunButtonStatus(RunCodeStatus status)
        {
            switch (status)
            {
            case RunCodeStatus.Running:
                this.btnRun.IsEnabled = false;
                break;

            case RunCodeStatus.Stop:
                this.btnRun.IsEnabled = true;
                break;
            }
        }
        /// <summary>
        /// 更改运行按钮的Content
        /// </summary>
        /// <param name="status"></param>
        private void SetRunButtonContent(RunCodeStatus status)
        {
            switch (status)
            {
            case RunCodeStatus.Running:
                this.btnRun.Content   = "执行中...";
                this.btnRun.IsEnabled = false;
                break;

            case RunCodeStatus.Stop:
                this.btnRun.Content   = "运行";
                this.btnRun.IsEnabled = true;
                break;
            }
        }