Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string        desc         = txtAddDesc.Text;
            string        email        = txtAddEmail.Text;
            string        phone        = txtAddPhone.Text;
            int           availability = cmbAdd.Text == "Available" ? 1 : 0;
            SecurityLevel sl           = new SecurityLevel();

            sl.AddSecurityLevel(desc, availability, email, phone);
            txtAddDesc.Clear();
            txtAddEmail.Clear();
            txtAddPhone.Clear();
            bs.DataSource = dataAccess.GetAllSecurityLevels();
            bs.ResetBindings(true);
        }