Ejemplo n.º 1
0
        private void Back_Click(object sender, RoutedEventArgs e)
        {
            NotiWindow noti = new NotiWindow();

            noti.Show();


            this.Close();
        }
Ejemplo n.º 2
0
        //public static NotiWindow notiWin = new NotiWindow();
        private static void OpenNoti()
        {
            user.t0    = DateTime.Now;
            user.time  = user.t0.ToString("yyyy-MM-dd HH:mm:ss");
            user.title = GetActiveWindowTitle();
            Trace.WriteLine(user.title);

            NotiWindow notiWin = new NotiWindow();

            WPlaySound.PlaySoundEvent("isNotification.Default");
            notiWin.Show();
            //System.Windows.Threading.Dispatcher.Run();
        }