Esempio n. 1
0
 private void BuildForm()
 {
     if (fdatabases == null)
     {
         fdatabases = new FDatabases();
     }
     fdatabases.FDatabases_NeedToRefresh += VDatabases_NeedToRefresh;
     Parent.Controls.Add(fdatabases);
     fdatabases.Dock = DockStyle.Fill;
     fdatabases.Show();
     fdatabases.BringToFront();
 }
Esempio n. 2
0
        void txt_databases_NewEntryNeeded(object sender, string pValue)
        {
            if (fsdatabases == null)
            {
                fsdatabases = new FDatabases();
            }
            Parent.Controls.Add(fsdatabases);
            fsdatabases.Dock = DockStyle.Fill;
            fsdatabases.Show();
            fsdatabases.BringToFront();
            fsdatabases.Focus();

            fsdatabases.SetAction(BtnEvent.New, null);
            fsdatabases.SetFocus();
        }
Esempio n. 3
0
        void Txt_databases_NewEntryNeeded(object sender, string pValue)
        {
            if (xdatabases == null)
            {
                xdatabases = new FDatabases();
                xdatabases.FDatabases_NeedToRefresh += Databases_NeedToRefresh;
            }
            this.Parent.Controls.Add(xdatabases);
            xdatabases.Dock = DockStyle.Fill;
            xdatabases.Show();
            xdatabases.BringToFront();
            xdatabases.Focus();

            xdatabases.SetAction(BtnEvent.New, null);
            xdatabases.SetFocus();
            xdatabases.setname(pValue);
        }
Esempio n. 4
0
        void Listgrid_RowAction(object sender, EventArgs e)
        {
            if (listgrid.SelectedRow == null)
            {
                return;
            }
            if (fdatabases == null)
            {
                fdatabases = new FDatabases();
            }
            BuildForm();
            string pkValue = GetSelectedPkValue();

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