Exemple #1
0
 private void BuildForm()
 {
     if (fversion == null)
     {
         fversion = new FVersion();
     }
     fversion.FVersion_NeedToRefresh += VVersion_NeedToRefresh;
     Parent.Controls.Add(fversion);
     fversion.Dock = DockStyle.Fill;
     fversion.Show();
     fversion.BringToFront();
 }
Exemple #2
0
        void txt_version_NewEntryNeeded(object sender, string pValue)
        {
            if (fsversion == null)
            {
                fsversion = new FVersion();
            }
            Parent.Controls.Add(fsversion);
            fsversion.Dock = DockStyle.Fill;
            fsversion.Show();
            fsversion.BringToFront();
            fsversion.Focus();

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

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