//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(); } }
//Update button private void label4_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("http://donixdev.esy.es/chess/index.php"); ExitButton.PerformClick(); }
//Downlaod failed public void DownlaodError(string error) { MessageBox.Show("Hiba történt a letöltéskor! Próbáld újra." + Environment.NewLine + error); ExitButton.PerformClick(); }