Beispiel #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();
 }
Beispiel #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();
        }
Beispiel #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);
        }
Beispiel #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);
            }
        }