Пример #1
0
        private void addButton_Click(object sender, EventArgs e)
        {
            UserTable newLogin = new UserTable();

            newLogin.Name         = nameTextBox.Text;
            newLogin.Family       = familyTextBox.Text;
            newLogin.User         = userNameTextBox.Text;
            newLogin.Password     = passWordTextBox.Text;
            newLogin.City         = Convert.ToInt64(cityComboBox.SelectedValue);
            newLogin.Permission   = persmissionCheckBox.Checked;
            newLogin.AdminVersion = AdminCheckBox.Checked;
            newLogin.Update       = false;
            newLogin.Messages     = " ";
            newLogin.Version      = global.currentVersion;

            SqlManipulator sql = new SqlManipulator();
            Reporter       rpt = new Reporter(sql.addUser(newLogin), (int)errorImages.info);

            rpt.Show();
            makeTableUsers(sql.getDataLogin());
        }