private void addCategoryButton_Click(object sender, EventArgs e) { CategoriesList.FinishCellEdit(); TaskCategory tk = new TaskCategory(""); Categories.Insert(0, tk); CategoriesList.SetObjects(Categories); CategoriesList.EditSubItem(CategoriesList.ModelToItem(Categories[0]), 0); }
public Task(string Name, string Description, TaskCategory Category, int Priority, int Weight, DateTime Deadline, TimeSpan Duration, Task Parent) { this.Name = Name; this.Description = Description; this.Category = Category; this.Priority = Priority; this.Weight = Weight; this.Deadline = Deadline; this.Duration = Duration; ParentTask = Parent; this.Subtasks = new List<Task>(); Percentage = 0; }
public void Update(string Name, string Description, TaskCategory Category, DateTime Deadline, TimeSpan Duration, int Priority, int Weight) { this.Name = Name; this.Deadline = Deadline; this.Category = Category; this.Description = Description; this.Duration = Duration; this.Priority = Priority; this.Weight = Weight; }