Beispiel #1
0
 public void showWarning(string title, string msg, int?sleep)
 {
     // Risolto il problema dello STAThread
     App.Current.Dispatcher.BeginInvoke(
         new Action(() =>
     {
         ShowTrayIcon trayIcon = new ShowTrayIcon();
         trayIcon.showWarning(title, msg, sleep);
     }
                    ));
 }
Beispiel #2
0
        public void showAboutCloud(string title, string msg, int?sleep)
        {
            ShowTrayIcon trayIcon = new ShowTrayIcon();

            trayIcon.showAboutCloud(title, msg, sleep);

            Messaggio msgStatusBar = new Messaggio(this);

            msgStatusBar.descrizione     = msg;
            msgStatusBar.showInStatusBar = true;
            LumenApplication.Instance.bus.Publish(msgStatusBar);
        }
Beispiel #3
0
        public void showAbout(string title, string msg, int?sleep)
        {
            // Risolto il problema dello STAThread
            App.Current.Dispatcher.BeginInvoke(
                new Action(() =>
            {
                ShowTrayIcon trayIcon = new ShowTrayIcon();
                trayIcon.showAbout(title, msg, sleep);
            }
                           ));

            Messaggio msgStatusBar = new Messaggio(this);

            msgStatusBar.descrizione     = msg;
            msgStatusBar.showInStatusBar = true;
            LumenApplication.Instance.bus.Publish(msgStatusBar);
        }
        public void showWarning(string title, string msg, int?sleep)
        {
            ShowTrayIcon trayIcon = new ShowTrayIcon();

            trayIcon.showWarning(title, msg, sleep);
        }
        public void showAboutCloud(string title, string msg, int?sleep)
        {
            ShowTrayIcon trayIcon = new ShowTrayIcon();

            trayIcon.showAboutCloud(title, msg, sleep);
        }