示例#1
0
 private void BuildForm()
 {
     if (fordertype == null)
     {
         fordertype = new FOrdertype();
     }
     fordertype.FOrdertype_NeedToRefresh += VOrdertype_NeedToRefresh;
     Parent.Controls.Add(fordertype);
     fordertype.Dock = DockStyle.Fill;
     fordertype.Show();
     fordertype.BringToFront();
 }
示例#2
0
        void txt_ordertype_NewEntryNeeded(object sender, string pValue)
        {
            if (fsordertype == null)
            {
                fsordertype = new FOrdertype();
            }
            Parent.Controls.Add(fsordertype);
            fsordertype.Dock = DockStyle.Fill;
            fsordertype.Show();
            fsordertype.BringToFront();
            fsordertype.Focus();

            fsordertype.SetAction(BtnEvent.New, null);
            fsordertype.SetFocus();
        }
示例#3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fordertype == null)
            {
                fordertype = new FOrdertype();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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