private void Lf_loginEvent() { ConnectionADO _connectionAdo = ConnectionADO.createAsSingleton(); string Server = Properties.Settings.Default.Servername; string UserName = Properties.Settings.Default.Username; string Password = Properties.Settings.Default.Password; BusinessLayerResult <object> connectionResult = _connectionAdo.ConnectionStatus(Server, UserName, Password); if (connectionResult.Result == false) { menuPanel.Enabled = false; ServerConnectionForm scf = new ServerConnectionForm(); scf.MdiParent = this; scf.serverConnectionFormControl += Scf_serverConnectionForm; scf.Show(); } else { menuPanel.Enabled = true; } }
public BusinessLayerResult <object> ConnectionDatabaseStatus() { ConnectionADO connAdo = ConnectionADO.createAsSingleton(); return(connAdo.ConnectionStatus(App.ServerName, App.Username, App.Password)); }