Exemple #1
0
 static bool CheckCrashedFroze(Alarm alarm)
 {
     try
     {
         if (alarm == null)
             throw new ArgumentNullException("alarm");
     }
     catch (ArgumentNullException ex)
     {
         Helpers.Debug.Report(ex);
     }
     return false;
 }
Exemple #2
0
 static void ProcessAlarm(Alarm alarm)
 {
     if (alarm.FocusClient)
         FocusClient();
     if (alarm.PlaySound)
         PlaySound(alarm.AlertType);
     if (alarm.PauseBot)
         PauseBot();
     if (alarm.Disconnect)
         Disconnect();
 }
Exemple #3
0
 static bool CheckPlayerAttacking(Alarm alarm)
 {
     try
     {
         if (alarm == null)
             throw new ArgumentNullException("alarm");
     }
     catch (ArgumentNullException ex)
     {
         Helpers.Debug.Report(ex);
     }
     return false;
 }
 internal AlertsSafeList(Alarm alarm)
 {
     InitializeComponent();
     SafeListListBox.ItemsSource = alarm.SafeList;
     _alarm = alarm;
 }