コード例 #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);
     }
                    ));
 }
コード例 #2
0
        public void showWarning(string title, string msg, int?sleep)
        {
            ShowTrayIcon trayIcon = new ShowTrayIcon();

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