private void bWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
// Close the task form
TaskForm.CloseForm();
// Close this form!
if (e.Error != null)
{
Exception E = e.Error as Exception;
MessageBox.Show(
"An error occured while trying to import player stats."
+ Environment.NewLine + Environment.NewLine + E.Message,
"Import Error",
MessageBoxButtons.OK,
MessageBoxIcon.Error
);
this.Close();
return;
}
Notify.Show("Player Imported Successfully!", "All the players stats and awards are now available on the server.", AlertType.Success);
this.Close();
}