Example #1
0
 private void BuildForm()
 {
     if (fcash_payment == null)
     {
         fcash_payment = new FCash_payment();
     }
     fcash_payment.FCash_payment_NeedToRefresh += VCash_payment_NeedToRefresh;
     Parent.Controls.Add(fcash_payment);
     fcash_payment.Dock = DockStyle.Fill;
     fcash_payment.Show();
     fcash_payment.BringToFront();
 }
Example #2
0
        void txt_cash_payment_NewEntryNeeded(object sender, string pValue)
        {
            if (fscash_payment == null)
            {
                fscash_payment = new FCash_payment();
            }
            Parent.Controls.Add(fscash_payment);
            fscash_payment.Dock = DockStyle.Fill;
            fscash_payment.Show();
            fscash_payment.BringToFront();
            fscash_payment.Focus();

            fscash_payment.SetAction(BtnEvent.New, null);
            fscash_payment.SetFocus();
        }
Example #3
0
        void Txt_cash_payment_NewEntryNeeded(object sender, string pValue)
        {
            if (xcash_payment == null)
            {
                xcash_payment = new FCash_payment();
                xcash_payment.FCash_payment_NeedToRefresh += Cash_payment_NeedToRefresh;
            }
            this.Parent.Controls.Add(xcash_payment);
            xcash_payment.Dock = DockStyle.Fill;
            xcash_payment.Show();
            xcash_payment.BringToFront();
            xcash_payment.Focus();

            xcash_payment.SetAction(BtnEvent.New, null);
            xcash_payment.SetFocus();
            xcash_payment.setname(pValue);
        }
Example #4
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fcash_payment == null)
            {
                fcash_payment = new FCash_payment();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

            if (pkValue != null)
            {
                fcash_payment.SetAction(BtnEvent.Open, pkValue);
            }
        }