Exemplo n.º 1
0
        private void buttonCheat_Click(object sender, EventArgs e)
        {
            FormForUsers form = new FormForUsers(GetObject().student[listBoxUsers.SelectedIndex]);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                var student = GetObject();
                listBoxUsers.Items[listBoxUsers.SelectedIndex] = form.GetObject();
            }
        }
Exemplo n.º 2
0
        private void buttonAddUser_Click(object sender, EventArgs e)
        {
            var form = new FormForUsers();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                listBoxUsers.Items.Add(form.GetObject());
            }
            ProverkaNalichia();
        }