예제 #1
0
 public override void HandleNotification(PureMVC.Interfaces.INotification notification)
 {
     base.HandleNotification(notification);
     switch (notification.Name)
     {
         case StatusProxy.CHANGE_STATUS_TEXT:
             pluginUI.Invoke((MethodInvoker)delegate
             {
                 pluginUI.setStatusText(notification.Body as String);
             });
             break;
         case StatusProxy.CHANGE_PROJECT_TEXT:
             pluginUI.Invoke((MethodInvoker)delegate
             {
                 pluginUI.setProjectText(notification.Body as String);
             });
             break;
         case StatusProxy.CHANGE_TIME:
             //Console.WriteLine("HandleNotification TimerProxy.CHANGE_TIMER");
             pluginUI.Invoke((MethodInvoker)delegate
             {
                 pluginUI.setTime((TimeSpan)notification.Body);
             });
             break;
     }
 }
예제 #2
0
        public override void HandleNotification(PureMVC.Interfaces.INotification notification)
        {
            base.HandleNotification(notification);

            switch (notification.Name)
            {
                case SettingsProxy.CHANGE_SETTING_OBJECT:
                    pluginMain.setSettingObject(notification.Body as SlimtimerSettings);
                    break;
            }
        }
예제 #3
0
 public override void HandleNotification(PureMVC.Interfaces.INotification notification)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public override void Execute(PureMVC.Interfaces.INotification notification)
 {
     base.Execute(notification);
     SettingsProxy settingsProxy = Facade.RetrieveProxy(SettingsProxy.NAME) as SettingsProxy;
     settingsProxy.LoadSettings();
 }