示例#1
0
 private void BuildForm()
 {
     if (fledgergroup == null)
     {
         fledgergroup = new FLedgergroup();
     }
     fledgergroup.FLedgergroup_NeedToRefresh += VLedgergroup_NeedToRefresh;
     Parent.Controls.Add(fledgergroup);
     fledgergroup.Dock = DockStyle.Fill;
     fledgergroup.Show();
     fledgergroup.BringToFront();
 }
示例#2
0
        void txt_ledgergroup_NewEntryNeeded(object sender, string pValue)
        {
            if (fsledgergroup == null)
            {
                fsledgergroup = new FLedgergroup();
            }
            Parent.Controls.Add(fsledgergroup);
            fsledgergroup.Dock = DockStyle.Fill;
            fsledgergroup.Show();
            fsledgergroup.BringToFront();
            fsledgergroup.Focus();

            fsledgergroup.SetAction(BtnEvent.New, null);
            fsledgergroup.SetFocus();
        }
示例#3
0
        void Txt_ledgergroup_NewEntryNeeded(object sender, string pValue)
        {
            if (xledgergroup == null)
            {
                xledgergroup = new FLedgergroup();
                xledgergroup.FLedgergroup_NeedToRefresh += Ledgergroup_NeedToRefresh;
            }
            this.Parent.Controls.Add(xledgergroup);
            xledgergroup.Dock = DockStyle.Fill;
            xledgergroup.Show();
            xledgergroup.BringToFront();
            xledgergroup.Focus();

            xledgergroup.SetAction(BtnEvent.New, null);
            xledgergroup.SetFocus();
            xledgergroup.setname(pValue);
        }
示例#4
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fledgergroup == null)
            {
                fledgergroup = new FLedgergroup();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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