private void projectRankButton_Click(object sender, EventArgs e) { if (projectsListBox.SelectedItem == null) { MessageBox.Show("请选择项目!", "提示"); return; } RankGridView dialogue = new RankGridView(((Info)projectsListBox.SelectedItem).Name, 2); dialogue.ShowDialog(this); }
private void allRankButton_Click(object sender, EventArgs e) { RankGridView dialogue = new RankGridView("", 2); dialogue.ShowDialog(this); }