private void MainForm_Load(object sender, EventArgs e) { try { this.Text = appName + " v" + appVersion; string str = YSTools.YSFile.readFileToString(MyDocuments + "\\." + appName); if (!string.IsNullOrWhiteSpace(str)) { MessageBox.Show(str); Application.Exit(); } } catch { } tsp_font_fimily.SelectedIndex = 3; tsp_font_size.SelectedIndex = 0; init(); ThreadPool.QueueUserWorkItem((a) => { if (AppConfig.Instance.MConfig.OnstartShowSessMgt) { this.BeginInvoke((MethodInvoker) delegate() { SessionManageForm form = new SessionManageForm(); form.ShowDialog(this); RenderSessionList(); }); } }); }
private void tool_open_Click(object sender, EventArgs e) { SessionManageForm form = new SessionManageForm(); form.ShowDialog(this); RenderSessionList(); }