private void button1_Click(object sender, EventArgs e) { IPform ipf = new IPform(Properties.Settings.Default.IP); if (ipf.ShowDialog() == System.Windows.Forms.DialogResult.OK) { client.Connect(); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (Properties.Settings.Default.IP == "") { IPform ipf = new IPform(""); if (ipf.ShowDialog() == DialogResult.Cancel) Application.Exit(); } Application.Run(new Form1()); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (Properties.Settings.Default.IP == "") { IPform ipf = new IPform(""); if (ipf.ShowDialog() == DialogResult.Cancel) { Application.Exit(); } } Application.Run(new Form1()); }
private void button1_Click(object sender, EventArgs e) { IPform ipf = new IPform(Properties.Settings.Default.IP); if (ipf.ShowDialog() == System.Windows.Forms.DialogResult.OK) client.Connect(); }