void HandleRowChanged(object o, Gtk.RowChangedArgs args) { Logger.Debug("Handle Row Changed : Task Modified."); HmTask task = (HmTask)taskStore.GetValue(args.Iter, 0); Logger.Debug(task.Name); }
public bool ContainsTask(ITask task) { if (task is HmTask) { HmTask hmtask = task as HmTask; return(hmtask.GroupId == this.group.Id); } return(false); }
public static HmTask[] GetTasks(XmlNodeList list, HmBackend backend) { uint i = 0; XmlSerializer serializer = new XmlSerializer(typeof(Task)); HmTask[] tasks = new HmTask[list.Count]; foreach (XmlNode node in list) { tasks[i++] = new HmTask((Task)serializer. Deserialize(new StringReader(node.OuterXml)), backend); } return(tasks); }
public void RefreshTasks() { Gtk.TreeIter iter; Logger.Debug("Fetching tasks"); HmTask[] tasks = HmTask.GetTasks(this.hm.DownloadTasks(), this); foreach (HmTask task in tasks) { task.Dump(); iter = taskStore.AppendNode(); taskStore.SetValue(iter, 0, task); } Logger.Debug("Fetching tasks Completed"); }
public ITask CreateTask(string taskName, ICategory category) { Hiveminder.Task task = new Task(); Hiveminder.Task createdTask; Gtk.TreeIter taskIter; task.Summary = taskName; createdTask = this.hm.CreateTask(task); HmTask hmTask = new HmTask(createdTask, this); //Add the newly created task into our store. lock (taskLock) { taskIter = taskStore.AppendNode(); taskStore.SetValue(taskIter, 0, hmTask); taskIters [hmTask.Id] = taskIter; } return(hmTask); }
public void UpdateTask(HmTask task) { Logger.Debug ("Updating task : " + task.Id); this.hm.UpdateTask (task.RemoteTask); }
public ITask CreateTask(string taskName, ICategory category) { Hiveminder.Task task = new Task (); Hiveminder.Task createdTask; Gtk.TreeIter taskIter; task.Summary = taskName; createdTask = this.hm.CreateTask (task); HmTask hmTask = new HmTask (createdTask, this); //Add the newly created task into our store. lock (taskLock) { taskIter = taskStore.AppendNode (); taskStore.SetValue (taskIter, 0, hmTask); taskIters [hmTask.Id] = taskIter; } return hmTask; }
public static HmTask[] GetTasks(XmlNodeList list, HmBackend backend) { uint i = 0; XmlSerializer serializer = new XmlSerializer(typeof(Task)); HmTask[] tasks = new HmTask[list.Count]; foreach (XmlNode node in list ) tasks[i++] = new HmTask ((Task)serializer. Deserialize(new StringReader(node.OuterXml)), backend); return tasks; }
public void UpdateTask(HmTask task) { Logger.Debug("Updating task : " + task.Id); this.hm.UpdateTask(task.RemoteTask); }
public void UpdateTask(HmTask task) { Debug.WriteLine ("Updating task : " + task.Id); this.hm.UpdateTask (task.RemoteTask); }