예제 #1
0
 private void BuildForm()
 {
     if (fshipping == null)
     {
         fshipping = new FShipping();
     }
     fshipping.FShipping_NeedToRefresh += VShipping_NeedToRefresh;
     Parent.Controls.Add(fshipping);
     fshipping.Dock = DockStyle.Fill;
     fshipping.Show();
     fshipping.BringToFront();
 }
예제 #2
0
        void txt_shipping_NewEntryNeeded(object sender, string pValue)
        {
            if (fsshipping == null)
            {
                fsshipping = new FShipping();
            }
            Parent.Controls.Add(fsshipping);
            fsshipping.Dock = DockStyle.Fill;
            fsshipping.Show();
            fsshipping.BringToFront();
            fsshipping.Focus();

            fsshipping.SetAction(BtnEvent.New, null);
            fsshipping.SetFocus();
        }
예제 #3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fshipping == null)
            {
                fshipping = new FShipping();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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