Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        private void menuToolSetEnv_Click(object sender, EventArgs e)
        {
            SettingForm Form2 = new SettingForm();

            timer2.Enabled = false;

            DialogResult ret = Form2.ShowDialog();

            if (ret == DialogResult.OK) {
                if (Form2.checkAutoGetMail.Checked) {
                    timer2.Interval = AccountInfo.getMailInterval * 60000;
                    timer2.Enabled = true;
                }
                else {
                    timer2.Enabled = false;
                }
            }
            // ListViewItemSorterを解除する
            listView1.ListViewItemSorter = null;

            // リストビューを更新する
            UpdateListView();

            // ListViewItemSorterを指定する
            listView1.ListViewItemSorter = listViewItemSorter;
        }