상속: System.EventArgs
예제 #1
0
 static void HandleDoNothing(object sender, ActionArgs e)
 {
     Tasks tasks = new Tasks();
     tasks.Load();
     Task current = tasks.CurrentTask();
     if (!current.IsWorked(DateTime.Now))
     {
         current.Worked.Add(DateTime.Now);
     }
     tasks.Save();
     SetPidginStatus("Busy", current.Summary);
 }
예제 #2
0
 private void OnPreviousTrack(object o, ActionArgs args)
 {
     ServiceManager.PlaybackController.Previous ();
 }
예제 #3
0
 private void OnPlayPause(object o, ActionArgs args)
 {
     ServiceManager.PlayerEngine.TogglePlaying ();
 }
예제 #4
0
 private void OnNextTrack(object o, ActionArgs args)
 {
     ServiceManager.PlaybackController.Next ();
 }
예제 #5
0
 static void HandleEditTask(object sender, ActionArgs e)
 {
     Tasks tasks = new Tasks();
     tasks.Load();
     EditTask(tasks.CurrentTask());
 }
예제 #6
0
 static void HandleAddTask(object sender, ActionArgs e)
 {
     AddTask(true);
 }
예제 #7
0
 static void HandleSelectTask(object sender, ActionArgs e)
 {
     SelectTask();
 }
예제 #8
0
 static void HandleSuggestTask(object sender, ActionArgs e)
 {
     SuggestTask();
 }
예제 #9
0
 static void HandleFinishedTask(object sender, ActionArgs e)
 {
     Tasks tasks = new Tasks();
     tasks.Load();
     Task task = tasks.CurrentTask();
     tasks.SetCurrentTaskFinished();
     Notification notify = new Notification();
     notify.Summary = "Task Finished";
     notify.Body = task.Summary;
     notify.Urgency = Urgency.Critical;
     notify.Show();
     SuggestTask();
 }
예제 #10
0
 static void HandlePostponeTask(object sender, ActionArgs e)
 {
     Tasks tasks = new Tasks();
     tasks.Load();
     tasks.PostponePriorityTask();
     SuggestTask();
 }
예제 #11
0
 private void OnSongSkipped (object o, ActionArgs args)
 {
     if (args.Action == "skip-song") {
         ServiceManager.PlaybackController.Next ();
     }
 }
예제 #12
0
        /// <summary>
        /// DeclineNotificationHandler
        /// Handles notifications
        /// </summary>	
        private void DeclineNotificationHandler(object o, ActionArgs args)
        {
            lock(notifyLock) {
                Logger.Debug("The notification declined");
                Notification notification = (Notification)o;

                if(currentNotification != null) {
                    NotificationData data = pendingData[currentPeerID];
                    if(data.Conversation != null)
                        CleanUpConversation(data.Conversation, true);

                    currentNotification = null;
                    currentPeerID = 0;
                }
            }
        }
예제 #13
0
        /// <summary>
        /// AcceptNotificationHandler
        /// Handles notifications
        /// </summary>	
        private void AcceptNotificationHandler(object o, ActionArgs args)
        {
            lock(notifyLock) {
                Logger.Debug("The notification was accepted");
                Notification notification = (Notification)o;

                if(currentNotification != null) {
                    NotificationData data = pendingData[currentPeerID];
                    if(data.Conversation != null)
                        CleanUpConversation(data.Conversation, false);

                    currentNotification = null;
                    currentPeerID = 0;
                    ChatWindowManager.HandleAcceptedConversation(data.Conversation, data.ChatType);
                }
            }
        }
예제 #14
0
 static void HandleSendReport(object sender, ActionArgs e)
 {
     Reports.SendReport(dailyreportmessage, selected);
 }
예제 #15
0
 static void HandleSendDaily(object sender, ActionArgs e)
 {
     Reports.SendReport(dailyreportmessage);
 }