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 = "" }); } }
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 }); } }