public void SaveAndUpdateTask(IceTask task)
{
// Send new values to the server and then update the task in the
// TreeModel.
try {
IceCategory iceCategory = task.Category as IceCategory;
deskIceDaemon.UpdateTask (iceCategory.Folder.ID,
task.Entry.ID,
task.Name,
task.Entry.Description,
task.IceDesktopStatus,
int.Parse (task.Entry.Priority),
int.Parse (task.Entry.PercentComplete),
task.DueDateString);
} catch (Exception e) {
Logger.Warn ("Error calling deskIceDaemon.UpdateTask: {0}",
e.Message);
return;
}
UpdateTask (task);
}