internal void SelectClient(int number) { try { CurrentClient = ClientList[number]; } catch (Exception ex) { Console.WriteLine("Error " + ex); } }
internal void AddClient() { try { progress = 0; CurrentClient = new ProgressBarClient(); ClientList.Add(CurrentClient); } catch (Exception ex) { Console.WriteLine(ex); } }
internal void KillClientAfter() { try { ClientList.Remove(CurrentClient); CurrentClient.CloseDialogAfter(3000, "BAZINGA"); CurrentClient.Dispose(); CurrentClient = null; Console.WriteLine("Killed current client"); if (ClientList.Count > 0) { CurrentClient = ClientList[ClientList.Count - 1]; } } catch (Exception ex) { Console.WriteLine(ex); } }