Ejemplo n.º 1
0
        private void toolStripButton3_Click_1(object sender, EventArgs e)
        {
            StartForm frm = new StartForm();

            frm.MdiParent = this;
            frm.Dock      = DockStyle.Fill;
            frm.Show();
        }
Ejemplo n.º 2
0
 private void LoadSettings()
 {
     // MessageBox.Show(Helper.serverIP);
     if (TestServerConnection())
     {
         lblStatus.Text      = lblStatus.Text + (" You are connected to the local server ");
         lblStatus.ForeColor = Color.Green;
         StartForm frms = new StartForm();
         frms.MdiParent = this;
         frms.Dock      = DockStyle.Fill;
         frms.Show();
     }
     else
     {
         ServerForm frm = new ServerForm();
         frm.Show();
         lblStatus.Text      = lblStatus.Text + (" You are not able to connect to the local server");
         lblStatus.ForeColor = Color.Red;
     }
     if (Helper.IsInternetAvailable())
     {
         //    if (TestOnlineServerConnection())
         //    {
         //        onlineLbl.Text = ("You are connected to the online server ");
         //        onlineLbl.ForeColor = Color.Green;
         //        StartForm frms = new StartForm();
         //        frms.MdiParent = this;
         //        frms.Dock = DockStyle.Fill;
         //        frms.Show();
         //    }
         //    else
         //    {
         //        ServerForm frm = new ServerForm();
         //        frm.Show();
         //        onlineLbl.Text = onlineLbl.Text + (" You are not able to connect to the online server");
         //        onlineLbl.ForeColor = Color.Red;
         //    }
         onlineLbl.Text      = onlineLbl.Text + (" Internet connect active");
         onlineLbl.ForeColor = Color.Green;
     }
     else
     {
         onlineLbl.Text      = onlineLbl.Text + (" No internet connection");
         onlineLbl.ForeColor = Color.Red;
     }
 }