コード例 #1
0
 private void BuildForm()
 {
     if (fcash_receipt == null)
     {
         fcash_receipt = new FCash_receipt();
     }
     fcash_receipt.FCash_receipt_NeedToRefresh += VCash_receipt_NeedToRefresh;
     Parent.Controls.Add(fcash_receipt);
     fcash_receipt.Dock = DockStyle.Fill;
     fcash_receipt.Show();
     fcash_receipt.BringToFront();
 }
コード例 #2
0
        void txt_cash_receipt_NewEntryNeeded(object sender, string pValue)
        {
            if (fscash_receipt == null)
            {
                fscash_receipt = new FCash_receipt();
            }
            Parent.Controls.Add(fscash_receipt);
            fscash_receipt.Dock = DockStyle.Fill;
            fscash_receipt.Show();
            fscash_receipt.BringToFront();
            fscash_receipt.Focus();

            fscash_receipt.SetAction(BtnEvent.New, null);
            fscash_receipt.SetFocus();
        }
コード例 #3
0
        void Txt_cash_receipt_NewEntryNeeded(object sender, string pValue)
        {
            if (xcash_receipt == null)
            {
                xcash_receipt = new FCash_receipt();
                xcash_receipt.FCash_receipt_NeedToRefresh += Cash_receipt_NeedToRefresh;
            }
            this.Parent.Controls.Add(xcash_receipt);
            xcash_receipt.Dock = DockStyle.Fill;
            xcash_receipt.Show();
            xcash_receipt.BringToFront();
            xcash_receipt.Focus();

            xcash_receipt.SetAction(BtnEvent.New, null);
            xcash_receipt.SetFocus();
            xcash_receipt.setname(pValue);
        }
コード例 #4
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fcash_receipt == null)
            {
                fcash_receipt = new FCash_receipt();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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