private void ITNotify_Load(object sender, EventArgs e) { CurrentSetting = SettingInfo.Load(); ConnectServer(); FormSetting(); }
private void SettingForm_Load(object sender, EventArgs e) { CurrentSettingInfo = SettingInfo.Load(); tbIP.Text = CurrentSettingInfo.IP; tbPort.Text = CurrentSettingInfo.Port.ToString(); cbExit.Checked = CurrentSettingInfo.IsRealCloseApp; }
private void 设置ToolStripMenuItem_Click(object sender, EventArgs e) { SettingForm sf = new SettingForm(); if (sf.ShowDialog() == DialogResult.OK) { this.CurrentSetting = sf.CurrentSettingInfo; ConnectServer(); } }