Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
 public void ReloadTable()
 {
     ToDoTable.ReloadData();
 }