/* static void c_ThresholdReached(object sender, ConsoleMessageEventArgs e) * { * var msg = e.Message.ToLower(); * * if (msg.Contains("[COUNTS]")) * { * var i =1; * } * * }*/ public Slack(string url) { iconChangeDelegate = new IconChange(IconChangeMethod); titleChangeDelegate = new TitleChange(TitleChangeMethod); flashBarDelegate = new FlashBar(FlashBarMethod); notifyDelegate = new Notify(NotifyMethod); InitializeComponent(); InitBrowser(url); }
/// <summary> /// Raises the <see cref="TitleChange"/> event /// </summary> /// <param name="e"></param> /// <exception cref="ArgumentNullException">Thrown when TitleEventArgs is null</exception> protected void OnTitleChange(ExWebBrowserTitleChangeEventArgs e) { if (e == null) { throw new ArgumentNullException("e"); } TitleChange?.Invoke(this, e); }
private void exWebBrowser1_TitleChange(object sender, ExControls.ComponentModel.ExWebBrowserTitleChangeEventArgs e) { if (e == null) { throw new ArgumentNullException("e"); } TitleChange?.Invoke(this, new WebPageTitleChangeEventArgs(e.Title)); }
public Slack() { iconChangeDelegate = new IconChange(IconChangeMethod); titleChangeDelegate = new TitleChange(TitleChangeMethod); flashBarDelegate = new FlashBar(FlashBarMethod); notifyDelegate = new Notify(NotifyMethod); InitializeComponent(); this.Icon = (System.Drawing.Icon)SlackIL.Icones.ResourceManager.GetObject("Slack"); InitBrowser("https://mtess-dgti.slack.com/"); }
/// <summary>Clears all events on this document.</summary> public void ClearEvents() { KeyUp = null; KeyDown = null; MouseMove = null; OnTitleChange = null; OnTooltipChange = null; OnResized = null; onresize = null; onkeydown = null; onkeyup = null; onmousemove = null; }
/// <summary>Clears all events on this document.</summary> public void ClearEvents(){ KeyUp=null; KeyDown=null; MouseMove=null; OnTitleChange=null; OnTooltipChange=null; OnResized=null; onresize=null; onkeydown=null; onkeyup=null; onmousemove=null; }