Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            Application.Init();
            icon            = StatusIcon.NewFromStock(Stock.ZoomIn);
            icon.Visible    = true;
            icon.Tooltip    = "Task Tracker";
            icon.PopupMenu += OnStatusIconPopupMenu;
            icon.Activate  += MenuViewTaskActivated;
            TaskSettings settings = new TaskSettings();

            settings       = settings.Load();
            watch          = new Timer(settings.interval);
            watch.Elapsed += HandleWatchElapsed;
            watch.Start();
            RequestWork.DisplayMessage();
            Application.Run();
        }
Exemplo n.º 2
0
 static void HandleWatchElapsed(object sender, ElapsedEventArgs e)
 {
     RequestWork.DisplayMessage();
 }
Exemplo n.º 3
0
//		static void MenuAddTaskActivated(object sender, EventArgs e)
//		{
//			RequestWork.AddTask(false);
//		}

        static void HandleShowActivated(object sender, EventArgs e)
        {
            RequestWork.DisplayMessage();
        }