示例#1
0
        private void ITNotify_Load(object sender, EventArgs e)
        {
            CurrentSetting = SettingInfo.Load();
            ConnectServer();

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