/// <summary>
 /// Triggers the RAM event
 /// </summary>
 /// <param name="args">Event arguments</param>
 private void TriggerRAMEvent(RAMEventArgs args)
 {
     if (RAMEvent != null)
     {
         RAMEvent(this, args);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// GUI label outputs for Current RAM available and Average RAM available 
 /// GUI warning output for falling below RAM availability threshold
 /// </summary>
 void RAMHandler(object sender, RAMEventArgs args)
 {
     label7.Content = string.Format("{0}", args.CurrentRAM.ToString("0.##") + " MB");
     label9.Content = string.Format("{0}", args.AverageRAM.ToString("0.##") + " MB");
     //activate alert message if ram availability falls below threshold
     if (args.CurrentRAM < slider2.Value)
     {
         AlertAnimation(label11); 
     }
 }