コード例 #1
0
        /* 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);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        private void exWebBrowser1_TitleChange(object sender, ExControls.ComponentModel.ExWebBrowserTitleChangeEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            TitleChange?.Invoke(this, new WebPageTitleChangeEventArgs(e.Title));
        }
コード例 #4
0
 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/");
 }
コード例 #5
0
        /// <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;
        }
コード例 #6
0
		/// <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;
			
		}