public static void Notify(Account account) { string title = Localization.Locale.Current.Growl.NewMessage; string message; if (account.Emails.Count < 0) { return; } else if (account.Emails.Count == 1) { Email email = account.Emails[0]; message = string.Format( Localization.Locale.Current.Growl.NewMessageFrom, email.Title, email.From); } else { message = string.Format( Localization.Locale.Current.Growl.HasNewMessages, account.Name, account.Emails.Count); } Notification notification = new Notification( Resources.WindowTitle, MessageTypes.NEWMESSAGE.ToString(), null, title, message ); Growl.Notify(notification); }
public static void Pop(Account account) { Toast slice = new Toast(account); slice.FormClosed += SliceClosed; _loaf.Enqueue(slice); PositionSlice(slice); slice.Show(); }