Exemplo n.º 1
0
 private void BuildForm()
 {
     if (fproducttype == null)
     {
         fproducttype = new FProducttype();
     }
     fproducttype.FProducttype_NeedToRefresh += VProducttype_NeedToRefresh;
     Parent.Controls.Add(fproducttype);
     fproducttype.Dock = DockStyle.Fill;
     fproducttype.Show();
     fproducttype.BringToFront();
 }
Exemplo n.º 2
0
        void txt_producttype_NewEntryNeeded(object sender, string pValue)
        {
            if (fsproducttype == null)
            {
                fsproducttype = new FProducttype();
            }
            Parent.Controls.Add(fsproducttype);
            fsproducttype.Dock = DockStyle.Fill;
            fsproducttype.Show();
            fsproducttype.BringToFront();
            fsproducttype.Focus();

            fsproducttype.SetAction(BtnEvent.New, null);
            fsproducttype.SetFocus();
        }
Exemplo n.º 3
0
        void Txt_producttype_NewEntryNeeded(object sender, string pValue)
        {
            if (xproducttype == null)
            {
                xproducttype = new FProducttype();
                xproducttype.FProducttype_NeedToRefresh += Producttype_NeedToRefresh;
            }
            this.Parent.Controls.Add(xproducttype);
            xproducttype.Dock = DockStyle.Fill;
            xproducttype.Show();
            xproducttype.BringToFront();
            xproducttype.Focus();

            xproducttype.SetAction(BtnEvent.New, null);
            xproducttype.SetFocus();
            xproducttype.setname(pValue);
        }
Exemplo n.º 4
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fproducttype == null)
            {
                fproducttype = new FProducttype();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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