private void Back_Click(object sender, RoutedEventArgs e) { NotiWindow noti = new NotiWindow(); noti.Show(); this.Close(); }
//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(); }