Example #1
0
        private void btnEnter_Click(object sender, EventArgs e)
        {
            Anonym();
            foreach (var item in db.Admins)
            {
                if (item.login.Equals(SecurityLogin) && item.password.Equals(SecurityPassword))
                {
                    var  person = db.TypePersons.FirstOrDefault(x => x.Id == item.type);
                    @int PCL    = new @int(person.Type, person.Id);

                    PCL.ShowDialog();
                }
            }
        }
Example #2
0
        private void CoursesList_Click(object sender, EventArgs e)
        {
            @int PCL = new @int(pname, iid);

            PCL.ShowDialog();
        }