// Event Handlers (OnSave, OnCancel, OnReview) public void OnSave(object o, EventArgs e) { vm.AddTask( ToDoEntry.Text, Priority.Text, Date.Date, Time.Time.Hours, Time.Time.Minutes, Time.Time.Seconds, updateID, false ); // toDoItems.Add( // new ToDoItem( // ToDoEntry.Text, // Priority.Text, // SetDueDate( // Date.Date, // Time.Time.Hours, // Time.Time.Minutes, // Time.Time.Seconds // ), // false // ) // ); Clear(); }
public void OnSave(object o, EventArgs e) { vm.AddTask( ToDoEntry.Text, Priority.Text, Date.Date, Time.Time.Hours, Time.Time.Minutes, Time.Time.Seconds, updateID, false); Clear(); }
public void OnSave(object o, EventArgs e) { //toDoItems.Add(new ToDoItem(ToDoEntry.Text, Priority.Text, SetDueDate(Date.Date, Time.Time.Hours, Time.Time.Minutes, Time.Time.Seconds), false)); vm.AddTask(ToDoEntry.Text, Priority.Text, Date.Date, Time.Time.Hours, Time.Time.Minutes, Time.Time.Seconds, false, updateID); Clear(); }