//新建 private void createNew_Click(object sender, EventArgs e) { CreateMatch form = new CreateMatch(); form.ShowDialog(); //刷新页面 // this.showMatchData(); }
//新建 private void toolStripButton_Create_Click(object sender, EventArgs e) { CreateMatch createMatch = new CreateMatch(); createMatch.ShowDialog(); }
//新建 private void newToolStripMenuItem_Click(object sender, EventArgs e) { CreateMatch createMatch = new CreateMatch(); createMatch.ShowDialog(); }
//窗体加载 //窗体显示 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(); } }
public static void setCreatMatchForm(CreateMatch createMatchForm) { _createMatchForm = createMatchForm; }
private void linkLabel_newMatch_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { CreateMatch newMatch = new CreateMatch(); newMatch.Show(); }