コード例 #1
0
 private void settingBtn_Click(object sender, EventArgs e)
 {
     if (settingform == null || Properties.Settings.Default.settingformEnabled == false) {
         settingform = new SettingForm(shortSettings, longSettings);
         settingform.UpdateAccountList(accountList);
         settingform.UpdateConditionList(conditionList);
         settingform.Show();
         Properties.Settings.Default.settingformEnabled = true;
     } else {
         settingform.Focus();
     }
 }
コード例 #2
0
        private void currentTimer_Tick(object sender, EventArgs e)
        {
            if (Properties.Settings.Default.settingformEnabled == false && settingform != null) {
                settingform.Dispose();
                settingform = null;
            }

            if (Properties.Settings.Default.logFormEnabled == false && logform != null) {
                logform.Dispose();
                logform = null;
            }

            DateTime time = DateTime.Now;
            int errSec = 1000 - time.Millisecond;

            currentTimer.Interval = errSec;
            currentTimer.Start();
            curTimeLabel.Text = time.ToString("MM/dd(ddd) HH:mm:ss");
        }