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(); }
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); }
private void Btn_new_Click(object sender, EventArgs e) { BuildForm(); fdatabases.SetAction(BtnEvent.New, null); fdatabases.SetFocus(); }