Ejemplo n.º 1
0
        /// <summary>
        /// Shows message comes from event in Statusbar
        /// </summary>
        /// <param name="state">The message.</param>
        private void ShowMSG(object state)
        {
            ShowMessageInStatusbarEventArgs e = (ShowMessageInStatusbarEventArgs)state;

            TextBlockStatusBar.Text = e.MSG;
            _timer.Stop();
            _timer.Interval = e.Duration;
            _timer.Start();
        }
Ejemplo n.º 2
0
        private void manage_ShowMessageInStatusbar(object sender, ShowMessageInStatusbarEventArgs e)
        {
            MakeThreadSafe dd = new MakeThreadSafe(ShowMSG);

            this.Dispatcher.BeginInvoke(dd, e);
        }