private void bok_Click(object sender, EventArgs e) { TeleSettings.TextFont = ftmp; TeleSettings.TextColor = ctmp; TeleSettings.BackGroundColor = colorchooser.BackColor; TeleSettings.TextFlip = textflip.Checked; TeleSettings.ShowStatus = showstatus.Checked; int dwi; int.TryParse(drawinterval.Text, out dwi); if (dwi < 0 || dwi > 300) { dwi = 15; MessageBox.Show("屏幕刷新间隔不可小于0或大于300,将恢复为默认值15。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } TeleSettings.DrawInterval = dwi; List<reporter_bgcolor> rbl = new List<reporter_bgcolor>(); foreach (ListViewItem lvi in lrset.Items) rbl.Add(new reporter_bgcolor(lvi.Text, lvi.SubItems[1].ForeColor)); TeleSettings.reporter_bgcolor_array = rbl; TeleSettings.SaveSettings(); this.Close(); }
public MainForm() { InitializeComponent(); TeleSettings.LoadSettings(); MainForm_Resize(null, null); }