Exemplo n.º 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();
            }
        }
Exemplo n.º 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());
 }
Exemplo n.º 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());
 }
Exemplo n.º 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();
 }