Пример #1
0
 private void OnObjectsModified(object o, Evolution.ObjectsModifiedArgs args)
 {
     foreach (CalComponent cc in CalUtil.ICalToCalComponentArray(args.Objects.Handle, this.cal_view.Client))
     {
         AddCalComponent(cc);
     }
 }
Пример #2
0
        public void TasksModified(object o, Evolution.ObjectsModifiedArgs args)
        {
            Logger.Debug("Tasks Modified ");
            Gtk.TreeIter iter;
            EDSTask      edsTask;
            EDSCategory  edsCategory;

            CalComponent[] modifiedTasks = CalUtil.ICalToCalComponentArray(args.Objects.Handle, ((CalView)o).Client);

            foreach (CalComponent task in modifiedTasks)
            {
                Logger.Debug("Modified : " + task.Summary);
                if (taskIters.ContainsKey(task.Uid))
                {
                    edsCategory = new EDSCategory(task.Source);
                    edsTask     = new EDSTask(task, edsCategory);
                    iter        = taskIters[edsTask.Id];
                    taskStore.SetValue(iter, 0, edsTask);
                }
            }
        }
Пример #3
0
 public void TasksAdded(object o, Evolution.ObjectsAddedArgs args)
 {
     Logger.Debug("Tasks Added ");
     CalComponent[] addedTasks = CalUtil.ICalToCalComponentArray(args.Objects.Handle, ((CalView)o).Client);
     lock (taskLock) {
         Gtk.TreeIter taskIter;
         EDSTask      edsTask;
         EDSCategory  edsCategory;
         foreach (CalComponent task in addedTasks)
         {
             if (!taskIters.ContainsKey(task.Uid))
             {
                 edsCategory = new EDSCategory(task.Source);
                 edsTask     = new EDSTask(task, edsCategory);
                 taskIter    = taskStore.AppendNode();
                 taskStore.SetValue(taskIter, 0, edsTask);
                 taskIters [edsTask.Id] = taskIter;
             }
         }
     }
 }