public MyTableView() { InitializeComponent(); Delegate = new TableDelegate(); DataSource = new TableDataSource(); }
public override void ViewDidLoad() { base.ViewDidLoad(); _filterText = ""; _tableSource = new TableDataSource(this); _tableDelegate = new TableDelegate(this); ButtonAreaView.Gradient = new GradientHelper(CMUIColors.SecondaryColorADark); ButtonAreaView.Border = 0; ButtonAreaView.CornerRadius = 0; monsterTable.DataSource = _tableSource; monsterTable.Delegate = _tableDelegate; addButton.TouchUpInside += HandleAddButtonTouchUpInside; closeButton.TouchUpInside += HandleCloseButtonTouchUpInside; filterTextBox.ValueChanged += HandleFilterTextBoxValueChanged; filterTextBox.AllEditingEvents += HandleFilterTextBoxAllEditingEvents; }