示例#1
0
        private void OnObjectsRemoved(object o, Evolution.ObjectsRemovedArgs args)
        {
            // FIXME: evolution-sharp doesn't know about
            // CalComponentId itself, so we have to workaround
            // this by re-creating the GLib.List with the right
            // type.
            GLib.List id_list = new GLib.List(args.Uids.Handle,
                                              typeof(CalComponentId));

            foreach (CalComponentId id in id_list)
            {
                RemoveCalComponent(id.Uid);
            }
        }
示例#2
0
        public void TasksRemoved(object o, Evolution.ObjectsRemovedArgs args)
        {
            Logger.Debug("Tasks Removed");
            Gtk.TreeIter iter;

            GLib.List removedTasksList = new GLib.List(args.Uids.Handle,
                                                       typeof(CalComponentId));

            foreach (CalComponentId id in removedTasksList)
            {
                if (taskIters.ContainsKey(id.Uid))
                {
                    iter = taskIters[id.Uid];
                    taskStore.Remove(ref iter);
                }
            }

            Logger.Debug("{0} Tasks removed in EDS", removedTasksList.Count);
        }