예제 #1
0
        public MyTableView()
        {
            InitializeComponent();

            Delegate   = new TableDelegate();
            DataSource = new TableDataSource();
        }
예제 #2
0
        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;
        }