void UpdateHoverText() { String text; if (Running) { text = Catalog.GetString("Time remaining:") + " "; } else { text = Catalog.GetString("Timer paused, time remaining:") + " "; } HoverText = Label + text + TimerMainDockItem.TimeRemaining(remaining); }
void OnFinished(bool notify, bool remove) { if (notify) { Log.Notify(Label + "Docky Timer", "clock", string.Format(Catalog.GetString("A timer set for {0} has expired."), TimerMainDockItem.TimeRemaining(Length))); DockServices.System.Execute("canberra-gtk-play -i \"system-ready\""); } if (remove && Finished != null) { Finished(this, EventArgs.Empty); } }