Exemple #1
0
        private void btnDn_Click(object sender, EventArgs e)
        {
            int i;

            i = UserBLL.SignIn(txtEmail.Text, txtPass.Text);
            if (i != 0)
            {
                ListJob a    = new ListJob();
                UserDTO user = new UserDTO();
                user = UserBLL.getUser(i);
                MessageBox.Show(user.uType.ToString());
                System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath);

                config.AppSettings.Settings["uid"].Value   = i.ToString();
                config.AppSettings.Settings["utype"].Value = user.uType.ToString();
                config.Save(ConfigurationSaveMode.Minimal);
                ConfigurationManager.RefreshSection("appSettings");
                a.Show();

                //AddJob a = new AddJob();
                //a.Show();
            }
            else
            {
                MessageBox.Show("Email hoặc Password không đúng. Vui lòng nhập lại!");
            }
        }
Exemple #2
0
        private void btback_Click(object sender, EventArgs e)
        {
            ListJob lj = new ListJob();

            lj.Show();
        }