示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }