示例#1
0
 private void BuildForm()
 {
     if (fledger == null)
     {
         fledger = new FLedger();
     }
     fledger.FLedger_NeedToRefresh += VLedger_NeedToRefresh;
     Parent.Controls.Add(fledger);
     fledger.Dock = DockStyle.Fill;
     fledger.Show();
     fledger.BringToFront();
 }
示例#2
0
        void txt_ledger_NewEntryNeeded(object sender, string pValue)
        {
            if (fsledger == null)
            {
                fsledger = new FLedger();
            }
            Parent.Controls.Add(fsledger);
            fsledger.Dock = DockStyle.Fill;
            fsledger.Show();
            fsledger.BringToFront();
            fsledger.Focus();

            fsledger.SetAction(BtnEvent.New, null);
            fsledger.SetFocus();
        }
示例#3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fledger == null)
            {
                fledger = new FLedger();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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