Ejemplo n.º 1
0
        private void ITNotify_Load(object sender, EventArgs e)
        {
            CurrentSetting = SettingInfo.Load();
            ConnectServer();

            FormSetting();
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 private void 设置ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SettingForm sf = new SettingForm();
     if (sf.ShowDialog() == DialogResult.OK)
     {
         this.CurrentSetting = sf.CurrentSettingInfo;
         ConnectServer();
     }
 }