示例#1
0
        private void NewRoleVote_Click(object sender, EventArgs e)
        {
            GTA_newRole f = new GTA_newRole();

            if (f.ShowDialog() == DialogResult.OK)
            {
                RolesVoter.Add(new RoleVote()
                {
                    command = f.command, name = f.name, nbr = f.number, UserNames = ""
                });
            }
        }
示例#2
0
        private void c_AddRole_Click(object sender, EventArgs e)
        {
            GTA_newRole f = new GTA_newRole();

            if (f.ShowDialog() == DialogResult.OK)
            {
                GTARoles.Add(new Role()
                {
                    command = f.command, name = f.name, nbr = f.number
                });
            }
        }