private void menıListWork_Click(object sender, EventArgs e) { bool isOpen = false; foreach (Form item in this.MdiChildren) { if (item is WorkListForm) { isOpen = true; } } if (isOpen == true) { wlf.BringToFront(); } else { wlf = new WorkListForm(); wlf.MdiParent = this; wlf.Show(); } }
private void MenuForm_Load(object sender, EventArgs e) { //ログイン者の氏名を設定する this.strShokuinNm.Text = Utility.ShokuinInfo.GetShokuinInfo().Shokuin.ShokuinNm; // TODO 初期表示メニューを表示する WorkListForm frm = new WorkListForm(); this.ShowForm(frm); //MstMenuForm frm = new MstMenuForm(); //this.ShowForm(frm); //this.dynButtonMenu(); }
// TODO test code private void button3_Click(object sender, EventArgs e) { WorkListForm frm = new WorkListForm(); this.ShowForm(frm); }