Ejemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.BeginInvoke((MethodInvoker)delegate
            {
                if (!NetworkInterface.GetIsNetworkAvailable())
                {
                    MessageBox.Show("Check your network connection", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    Application.Exit();
                }
                // Decoration();
                x = new xuly();

                loadMatches();

            });

              //  LoadPLFix();

              //  LoadTable();
        }
Ejemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            if (!NetworkInterface.GetIsNetworkAvailable())
            {
                MessageBox.Show("Check your network connection", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
                GetTimeSpan();
                x = new xuly();
                x.GetTeams("teams.txt");
                string text=timeSpan.ToString();
                if(text.IndexOf("-")<0)
                    text="+"+timeSpan;
                this.Text = "Premier League "+xuly.season+". Your location: UTC" + text + ". Copyright© [email protected]";
                lblNot.Text = "Your system time zone is set to UTC" + text+". And the matches time will be shown as this setting.";
                Decoration();

                //System.Threading.Thread matchThread =       new System.Threading.Thread(loadMatches);
                //System.Threading.Thread fixThread =           new System.Threading.Thread(LoadPLFix);
                //System.Threading.Thread tableThread = new System.Threading.Thread(LoadTable);

                //matchThread.Start();
                ////if (!matchThread.IsAlive) {
                //    fixThread.Start();
                //    tableThread.Start();
                ////}

              //  loadMatches();

                LoadPLFix();

              //  LoadTable();
        }