Ejemplo n.º 1
0
 private void BuildForm()
 {
     if (ftaxtype == null)
     {
         ftaxtype = new FTaxtype();
     }
     ftaxtype.FTaxtype_NeedToRefresh += VTaxtype_NeedToRefresh;
     Parent.Controls.Add(ftaxtype);
     ftaxtype.Dock = DockStyle.Fill;
     ftaxtype.Show();
     ftaxtype.BringToFront();
 }
Ejemplo n.º 2
0
        void Txt_taxtype_NewEntryNeeded(object sender, string pValue)
        {
            if (fstaxtype == null)
            {
                fstaxtype = new FTaxtype();
            }
            Parent.Controls.Add(fstaxtype);
            fstaxtype.Dock = DockStyle.Fill;
            fstaxtype.Show();
            fstaxtype.BringToFront();
            fstaxtype.Focus();

            fstaxtype.SetAction(BtnEvent.New, null);
            fstaxtype.SetFocus();
        }
Ejemplo n.º 3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (ftaxtype == null)
            {
                ftaxtype = new FTaxtype();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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