private void button1_Click(object sender, EventArgs e)
        {
            LoginDetails lg = new LoginDetails();
            lg.Synch_EmpNo = txtEmpNo.Text;
            lg.Synch_EmpPass = txtPass.Text;

            if (lg.GetValidationResults() == 1)
            {
                this.Hide();
                var form2 = new MainForm();
                form2.Show();
            }
            else
            {
                MessageBox.Show("Sorry but Employee ID / Password does not exists!", "Error Login");
            }
        }