Exemple #1
0
 private void BuildForm()
 {
     if (fbundle == null)
     {
         fbundle = new FBundle();
     }
     fbundle.FBundle_NeedToRefresh += VBundle_NeedToRefresh;
     Parent.Controls.Add(fbundle);
     fbundle.Dock = DockStyle.Fill;
     fbundle.Show();
     fbundle.BringToFront();
 }
Exemple #2
0
        void txt_bundle_NewEntryNeeded(object sender, string pValue)
        {
            if (fsbundle == null)
            {
                fsbundle = new FBundle();
            }
            Parent.Controls.Add(fsbundle);
            fsbundle.Dock = DockStyle.Fill;
            fsbundle.Show();
            fsbundle.BringToFront();
            fsbundle.Focus();

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

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