private void btnEdit_Click(object sender, EventArgs e) { if (cboxTeam.SelectedIndex >= 0) { selectTeam = (ChatStore)cboxTeam.SelectedItem; fmEditTeamName editForm = new fmEditTeamName(selectTeam.ChatUserName, selectTeam.ChatDisplayName); if (editForm.ShowDialog() == DialogResult.OK) { BindTeam(); } } }
private void btnEdit_Click(object sender, EventArgs e) { if (cboxTeam.SelectedIndex >= 0) { selectTeam = (Team)cboxTeam.SelectedItem; fmEditTeamName editForm = new fmEditTeamName(selectTeam.TeamId, selectTeam.TeamName); if (editForm.ShowDialog() == DialogResult.OK) { teamIsChange = true; BindTeam(); } } }