示例#1
0
        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();
            }
        }
示例#2
0
 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());
 }
示例#3
0
 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());
 }
示例#4
0
 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();
 }