// 窗体加载 private void Form_Main_Load(object sender, EventArgs e) { string dp2ServerUrl = Properties.Settings.Default.dp2ServerUrl; if (string.IsNullOrEmpty(dp2ServerUrl)) { Form_Setting dlg = new Form_Setting(); dlg.ShowDialog(this); } }
//服务器配置 private void dp2服务器配置SToolStripMenuItem_Click(object sender, EventArgs e) { Form_Setting dlg = new Form_Setting(); dlg.ShowDialog(this); }