Ejemplo n.º 1
0
 private void BuildForm()
 {
     if (fgarment_order == null)
     {
         fgarment_order = new FOrder();
     }
     fgarment_order.FOrder_NeedToRefresh += VOrder_NeedToRefresh;
     Parent.Controls.Add(fgarment_order);
     fgarment_order.Dock = DockStyle.Fill;
     fgarment_order.Show();
     fgarment_order.BringToFront();
 }
Ejemplo n.º 2
0
        void Txt_order_id_NewEntryNeeded(object sender, string pValue)
        {
            if (forder == null)
            {
                forder = new FOrder();
            }
            Parent.Controls.Add(forder);
            forder.Dock = DockStyle.Fill;
            forder.Show();
            forder.BringToFront();
            forder.Focus();

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

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