Example #1
0
        private void ServerPanelControl()
        {
            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 == true)
            {
                this.Hide();
                serverConnectionFormControl();
            }
        }
Example #2
0
        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;
            }
        }
Example #3
0
        public BusinessLayerResult <object> ConnectionDatabaseStatus()
        {
            ConnectionADO connAdo = ConnectionADO.createAsSingleton();

            return(connAdo.ConnectionStatus(App.ServerName, App.Username, App.Password));
        }