private void AddExecute(object obj) { var c = new AddMatchWin(); c.Closed += (s, e) => { if (c.DialogResult == true) { InitData(); } }; c.Show(); }
private void EditExecute(object obj) { if (SelectedMatch == null) { MessageBox.Show("请选择要编辑的比赛"); return; } var c = new AddMatchWin(SelectedMatch); c.Closed += (s, e) => { if (c.DialogResult == true) { InitData(); } }; c.Show(); }