Beispiel #1
0
        private void ServerURLToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.TopMost      = false;
            chk_OnTop.Checked = false;
            frmServerurl ss = new frmServerurl();

            ss.ShowDialog();
        }
Beispiel #2
0
 public static void downloadUserlist()
 {
     try
     {
         WebClient uld = new WebClient();
         userlist = uld.DownloadString(server_url + "/s_totalusers.php");
     }
     catch (Exception e)
     {
         MessageBox.Show("Please setup teamserver clientsoftware now." +
                         "\nYou will need to enter the domain with URL where your " +
                         "calendar database is located!");
         frmServerurl ss = new frmServerurl();
         ss.ShowDialog();
     }
 }
Beispiel #3
0
        public void f_init()
        {
            alog("Initializing now");
            rtb_Logview.Visible = false;
            this.Width          = 822;
            lbl_Time.Visible    = false;
            var    inif     = new classINI(settingspath);
            string tempfont = inif.Read("font");

            //ts(StringToFont(tempfont));

            alog("UI init done");
            try
            {
                alog("reading settings");
                var ini = new classINI(settingspath);
                server_url = ini.Read("url");
                alog("Checking files");
                checkFiles();
                getUserlist();
                alog("loading users from database");
                this.Text += " - connected to server on : " + server_url;
            }
            catch (Exception e) {
                MessageBox.Show(e.ToString());; frmServerurl ss = new frmServerurl();
                ss.ShowDialog();
            }

            WebRequest.DefaultWebProxy = null; alog("Proxy set");
            System.Windows.Forms.Timer heartbeat = new System.Windows.Forms.Timer();

            alog("calculating correct opacity");

            tb_Opacity.Value = 10;
            int actualOpacity = 0;

            actualOpacity  = tb_Opacity.Value;
            global_opacity = Convert.ToInt32(this.Opacity);
            this.Opacity   = ((double)(tb_Opacity.Value) / 10.0);
            alog("opacity set");
        }
Beispiel #4
0
 public static void downloadUserlist()
 {
     try
     {
         WebClient uld = new WebClient();
         userlist = uld.DownloadString(server_url + "/s_totalusers.php");
     }
     catch { MessageBox.Show("No Connection or another failure happened, please check your server URL and try again."); frmServerurl ss = new frmServerurl();
             ss.ShowDialog(); }
 }