Ejemplo n.º 1
0
        internal void Main_Action()
        {
            if (handler.isReady == false)
            {
                Task.Factory.StartNew(InitializeDownload);
            }

            else if (handler.isReady)
            {
                handler.LaunchClient();
            }
        }
Ejemplo n.º 2
0
        private void Main_action_btn_Click(object sender, EventArgs e)
        {
            if (handler.isReady == false)
            {
                Main_action_btn.Enabled = false;

                Main_action_btn.Text = "Waiting..";

                if (handler.InitialDownload())
                {
                    MessageBox.Show("The initial installation may take a while.");
                }

                Task.Factory.StartNew(InitializeDownload);

                Main_action_btn.Text = "Downloading..";
            }

            else if (handler.isReady)
            {
                handler.LaunchClient();
            }
        }