예제 #1
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            MaintenanceListViewController2 destinationVc = StoryboardHelper.GetViewController <MaintenanceListViewController2>("Main", "MaintenanceListViewController");
            UITableViewCell cellSelected = tableView.CellAt(indexPath);

            if (cellSelected.Equals(RequestedTableViewCell))
            {
                destinationVc.SetMaintenanceStatus(Enums.MaintenanceStatus.Requested);
            }
            else if (cellSelected.Equals(IncompleteTableViewCell))
            {
                destinationVc.SetMaintenanceStatus(Enums.MaintenanceStatus.Incomplete);
            }
            else if (cellSelected.Equals(CompletedTableViewCell))
            {
                destinationVc.SetMaintenanceStatus(Enums.MaintenanceStatus.Complete);
            }
            else if (cellSelected.Equals(CreateMaintenanceTableViewCell))
            {
                return;
            }
            else
            {
                return;
            }

            NavigationController.PushViewController(destinationVc, true);
        }