Пример #1
0
 //Downlaod succesfull
 public void DownloadSucces(string name)
 {
     DownloadChangesLabel.Invoke((MethodInvoker)(() => DownloadChangesLabel.Visible = false));
     label6.Invoke((MethodInvoker)(() => label6.Text = "Game setup finished!"));
     NextButton.Invoke((MethodInvoker)(() => NextButton.Visible = true));
 }
Пример #2
0
        //Login succesfull
        void LoginSucces(string name)
        {
            NameTextBox.Enabled = false;
            PassTextBox.Enabled = false;

            SubmitButton.Visible = false;
            SwichButton.Visible  = false;

            DownloadPanel.Visible = true;
            r = new Chess.Resources(() => DownloadSucces(name), DownlaodError, (a) => DownloadChangesLabel.Invoke((MethodInvoker)(() => DownloadChangesLabel.Text = a + "...")));
            if (!r.AUpdate(FilteredName(name)))
            {
                ExitButton.PerformClick();
            }
        }