Example #1
0
        /// <summary>
        /// 开机自启动改变事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void checkBoxAutoRun_CheckedChanged(object sender, EventArgs e)
        {
            CheckBox checkBox = (CheckBox)sender;

            if (checkBox.Checked != AutoRun.IsAutoRun())
            {
                if (checkBox.Checked)
                {
                    AutoRun.Open();
                }
                else
                {
                    AutoRun.Close();
                }
            }
        }
Example #2
0
        /// <summary>
        /// 初始化UI
        /// </summary>
        private void InitUI()
        {
            //初始化模式下拉列表
            InitComboBoxMode(comboBoxMode);

            //初始化条件下拉列表
            InitComboBoxLoop(comboBoxLoop);

            //初始备注输入框
            InitTextBoxMark(textBoxMark);

            //初始化浏览Lable
            InitRemindLabel(labelModel, textBoxModel);

            //初始化开机自启动
            checkBoxAutoRun.Checked = AutoRun.IsAutoRun();

            //初始化未完成任务加载
            checkBoxSave.Checked = Convert.ToBoolean(INIFILE.Config.IsSaveTimed);
        }