partial void AddButtonClick(Foundation.NSObject sender) { if (!string.IsNullOrEmpty(TextField.StringValue)) { //(NSApplication.SharedApplication.Delegate as AppDelegate)?.Sel var todoItem = new ToDoItem() { Name = TextField.StringValue, IsImportant = ImportantCheckBox.IntValue == 1 }; this._dataSource.Items.Add(todoItem); ToDoTable.ReloadData(); ClearData(); } }
public void ReloadTable() { ToDoTable.ReloadData(); }