Example #1
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            PeriodCellView customCell = tableView.CellAt(indexPath) as PeriodCellView;

            customCell.SelectOption();
            var status = periodo[indexPath.Row];

            if (status == "Personalizado")
            {
                filterOrdersViewController.HidePeriod(false);
                filterOrdersViewController.SetPeriod();
            }
            else
            {
                filterOrdersViewController.HidePeriod(true);
            }

            NSUserDefaults.StandardUserDefaults.SetString(status, "OrderPeriod");
        }
Example #2
0
        public override void RowDeselected(UITableView tableView, NSIndexPath indexPath)
        {
            PeriodCellView customCell = tableView.CellAt(indexPath) as PeriodCellView;

            customCell.DeselectOption();
        }