Exemple #1
0
 private void BuildForm()
 {
     if (fcxversion == null)
     {
         fcxversion = new FCxversion();
     }
     fcxversion.FCxversion_NeedToRefresh += VCxversion_NeedToRefresh;
     Parent.Controls.Add(fcxversion);
     fcxversion.Dock = DockStyle.Fill;
     fcxversion.Show();
     fcxversion.BringToFront();
 }
Exemple #2
0
        void txt_cxversion_NewEntryNeeded(object sender, string pValue)
        {
            if (fscxversion == null)
            {
                fscxversion = new FCxversion();
            }
            Parent.Controls.Add(fscxversion);
            fscxversion.Dock = DockStyle.Fill;
            fscxversion.Show();
            fscxversion.BringToFront();
            fscxversion.Focus();

            fscxversion.SetAction(BtnEvent.New, null);
            fscxversion.SetFocus();
        }
Exemple #3
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fcxversion == null)
            {
                fcxversion = new FCxversion();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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