예제 #1
0
 private void OnObjectsAdded(object o, Evolution.ObjectsAddedArgs args)
 {
     foreach (CalComponent cc in CalUtil.ICalToCalComponentArray(args.Objects.Handle, this.cal_view.Client))
     {
         AddCalComponent(cc);
     }
 }
예제 #2
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;
             }
         }
     }
 }