예제 #1
0
        /// <summary>
        /// buttonScanScheduleChange on-click event handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonScanScheduleChange_Click(object sender, EventArgs e)
        {
            ClamWinScheduleForm form   = new ClamWinScheduleForm();
            DialogResult        result = form.ScheduleDoModal("Scan", ref ScanScheduleData);

            if (result != DialogResult.OK)
            {
                return;
            }

            buttonSettingsApply.Enabled = true;

            checkBoxScanSchedule.Text = ScanScheduleData.GetDescription();
        }
예제 #2
0
        /// <summary>
        /// buttonUpdateEveryChange on-click event handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonUpdateEveryChange_Click(object sender, EventArgs e)
        {
            ClamWinScheduleForm form   = new ClamWinScheduleForm();
            DialogResult        result = form.ScheduleDoModal("Update", ref UpdateScheduleData);

            if (result != DialogResult.OK)
            {
                return;
            }

            buttonSettingsApply.Enabled = true;

            radioButtonUpdateEvery.Text = UpdateScheduleData.GetDescription();
        }