Пример #1
0
        partial void BtnAddClicked(Foundation.NSObject sender)
        {
            selctedIndex = -1;
            var addItemVC = new AddOrderItemController();

            addItemVC.ConutryCode            = SuperVC.LedgerOrderObj.CountryCode;
            addItemVC.ModalPresentationStyle = UIModalPresentationStyle.OverCurrentContext;
            addItemVC.compCode   = SuperVC.LedgerOrderObj.CompCode;
            addItemVC.ItemAdded += AddItemVC_ItemAdded;
            addItemVC.Enable     = true;
            this.PresentViewController(addItemVC, true, null);
        }
Пример #2
0
        void Cell_EditClicked(object sender, EventArgs e)
        {
            selctedIndex = (int)sender;
            var addItemVC = new AddOrderItemController();

            addItemVC.Enable                 = true;
            addItemVC.ledgerItem             = SuperVC.LedgerOrderObj.LedgerOrderItems[selctedIndex];
            addItemVC.ConutryCode            = SuperVC.LedgerOrderObj.CountryCode;
            addItemVC.ModalPresentationStyle = UIModalPresentationStyle.OverCurrentContext;
            addItemVC.compCode               = SuperVC.LedgerOrderObj.CompCode;
            addItemVC.ItemAdded             += AddItemVC_ItemAdded;
            this.PresentViewController(addItemVC, true, null);
        }
Пример #3
0
        public void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            selctedIndex = indexPath.Row;
            var addItemVC = new AddOrderItemController();

            addItemVC.Enable                 = false;
            addItemVC.ledgerItem             = SuperVC.LedgerOrderObj.LedgerOrderItems[indexPath.Row];
            addItemVC.ConutryCode            = SuperVC.LedgerOrderObj.CountryCode;
            addItemVC.ModalPresentationStyle = UIModalPresentationStyle.OverCurrentContext;
            addItemVC.compCode               = SuperVC.LedgerOrderObj.CompCode;
            addItemVC.ItemAdded             += AddItemVC_ItemAdded;
            this.PresentViewController(addItemVC, true, null);
        }