コード例 #1
0
        private void AddExecute(object obj)
        {
            var c = new AddMatchWin();

            c.Closed += (s, e) =>
            {
                if (c.DialogResult == true)
                {
                    InitData();
                }
            };
            c.Show();
        }
コード例 #2
0
        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();
        }