retesere20

alert properties example NT8 c#

Jul 26th, 2019
120
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #region Alerts
  2.  
  3. [Display(GroupName="Options - Alerts", Name="Alert notice text (Chart-info be auto-appended)", Order=3)]
  4. public string Alert_Text_
  5. { get { return Alert_Text;} set {Alert_Text = value;} }
  6. private string Alert_Text = "Alert occurs!";
  7.  
  8. [Display(GroupName="Options - Alerts", Name="Sound enable", Order=5)]
  9. public bool Sound_Enable_
  10. { get { return Sound_Enable;} set { Sound_Enable = value;} }
  11. private bool Sound_Enable = false;
  12.  
  13. [Display(GroupName="Options - Alerts", Name="Sound File", Order=8)]
  14. public string Sound_File_
  15. { get { return Sound_File;} set { Sound_File = value;} }
  16. private string Sound_File = @"C:\Windows\Media\ringout.wav";
  17.  
  18. [Display(GroupName="Options - Alerts", Name="Popup-notification enabled", Order=15)]
  19. public bool Popupmessage_enabled_
  20. { get { return Popupmessage_enabled;} set { Popupmessage_enabled = value;} }
  21. private bool Popupmessage_enabled = false;
  22.  
  23. [Display(GroupName="Options - Alerts", Name="Alerts Log Page - Background Color", Order=18)]
  24. [XmlIgnore]
  25. public Brush Alert_log_back_color_
  26. {
  27. get { return this.Alert_log_back_color; }
  28. set { this.Alert_log_back_color = value; }
  29. }
  30. private Brush Alert_log_back_color = Brushes.White;
  31. [Browsable(false)]
  32. public string Alert_log_text_color_Serialize
  33. {
  34. get { return Serialize.BrushToString(this.Alert_log_back_color); }
  35. set { this.Alert_log_back_color = Serialize.StringToBrush(value); }
  36. }
  37.  
  38. private Brush Alert_log_text_Color = Brushes.Black;
  39. private bool Allow_same_bar_retrigger = false;
  40.  
  41.  
  42. [Display(GroupName="Options - Alerts", Name="Show arrow on Alert-bar", Order=15)]
  43. public bool DrawArrowOnAlertBar_
  44. { get { return DrawArrowOnAlertBar;} set { DrawArrowOnAlertBar = value;} }
  45. private bool DrawArrowOnAlertBar = true;
  46.  
  47.  
  48. #endregion
  49. ---> pp.AlertNT(this, Alert_Text, Sound_Enable, Sound_File, Popupmessage_enabled, Allow_same_bar_retrigger, Alert_log_back_color, Alert_log_text_Color, (DrawArrowOnAlertBar ? 1 : 0), Low[0]-TickSize*2, Brushes.Green);
RAW Paste Data