Ejemplo n.º 1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            try
            {
                loAdministration = new Controller.Administration();
                bool _userExists = loAdministration.loginUser(this.txtUsername.Text, this.txtPassword.Text);

                if (_userExists == true)
                {
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Wrong username and password combination!", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Invalid username and password combination", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
 public ViewRole()
 {
     InitializeComponent();
     loAdministration = new Controller.Administration();
 }
Ejemplo n.º 3
0
 public UserMasterList()
 {
     InitializeComponent();
     loAdministration = new Controller.Administration();
 }
Ejemplo n.º 4
0
 public NewUser()
 {
     InitializeComponent();
     loAdministration = new Controller.Administration();
 }
Ejemplo n.º 5
0
 private void bwSplash_DoWork(object sender, DoWorkEventArgs e)
 {
     Thread.Sleep(lDelay);
     bwSplash.ReportProgress(0);
     Thread.Sleep(lDelay);
     Administration.Controller.Administration _oAdministration = new Controller.Administration();
     _oAdministration.openSQLConnection();
     Thread.Sleep(lDelay);
     bwSplash.ReportProgress(1);
     Thread.Sleep(lDelay);
     bwSplash.ReportProgress(2);
     Thread.Sleep(lDelay);
     _oAdministration.connectToFileServer();
     Thread.Sleep(lDelay);
     bwSplash.ReportProgress(6);
     _oAdministration.connectToImageServer();
     bwSplash.ReportProgress(7);
     Thread.Sleep(lDelay);
     bwSplash.ReportProgress(3);
     Thread.Sleep(lDelay);
     bwSplash.ReportProgress(4);
     GlobalVariables.goApplication = new Microsoft.Office.Interop.Word.Application();
     GlobalVariables.goDocument = new Microsoft.Office.Interop.Word.Document();
     bwSplash.ReportProgress(5);
     Thread.Sleep(lDelay);
     bwSplash.ReportProgress(8);
     _oAdministration.loadDLLs();
     bwSplash.ReportProgress(9);
     Thread.Sleep(lDelay);
 }
Ejemplo n.º 6
0
 public SystemRoleUI()
 {
     loAdministration = new Controller.Administration();
     InitializeComponent();
 }