Пример #1
0
 //新建
 private void createNew_Click(object sender, EventArgs e)
 {
     CreateMatch form = new CreateMatch();
     form.ShowDialog();
     //刷新页面
       //  this.showMatchData();
 }
Пример #2
0
 //新建
 private void toolStripButton_Create_Click(object sender, EventArgs e)
 {
     CreateMatch createMatch = new CreateMatch();
     createMatch.ShowDialog();
 }
Пример #3
0
 //新建
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CreateMatch createMatch = new CreateMatch();
     createMatch.ShowDialog();
 }
Пример #4
0
        //窗体加载
        //窗体显示
        private void MainForm_Shown(object sender, EventArgs e)
        {
            //设置窗体最大化
            this.WindowState = FormWindowState.Maximized;
            //默认设置数据读取
            DefaultSetDAO.getDefaultSet();
            //显示打开球队
            DefaultPage defaultPage = new DefaultPage(this);
            SystemParam.setDefaultPageForm(defaultPage);
            defaultPage.Show();

            //ReportOfInfo report = new ReportOfInfo(this);
               // report.Show();

            if(SystemParam.checkExistMatch()){   //如果系统存在赛事,显示打开赛事
                OpenMatch form = new OpenMatch();
                form.ShowDialog();
            }
            else{
                CreateMatch newMatch = new CreateMatch();
                newMatch.Show();
               }
        }
Пример #5
0
 public static void setCreatMatchForm(CreateMatch createMatchForm)
 {
     _createMatchForm = createMatchForm;
 }
Пример #6
0
 private void linkLabel_newMatch_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     CreateMatch newMatch = new CreateMatch();
     newMatch.Show();
 }