Exemplo n.º 1
0
        public void LoadDetailsAdapter()
        {
            if (this.Activity == null)
            {
                return;
            }

            detailsAdapter = new TransDetAdapter(Activity, invoiceParentView.Header.TransDetList, this.invoiceParentView);
            detailsAdapter.QtysChangedEvent += () =>
            {
                if (DetailsChanged != null)
                {
                    DetailsChanged();
                }
                //detailsAdapter.NotifyDataSetChanged();

                //if (TransDetAdapter.lastFocusedControl != null)
                //{
                //TransDetAdapter.lastFocusedControl.RequestFocus();
                //}
            };
            detailsAdapter.DetailFieldSelectedEvent += (selDetail) => {
                selectedDetail = selDetail;
            };

            lvDetails.SetAdapter(detailsAdapter);

            if (DetailsChanged != null)
            {
                DetailsChanged();
            }
        }
Exemplo n.º 2
0
 public DialogDeleteDetail(string questionDelete, int pos, TransDetAdapter adapter)
 {
     position         = pos;
     questionDelYesNo = questionDelete;
     this.adapter     = adapter;
 }