private void ribbonButton1_Click(object sender, EventArgs e) { if (this.MdiChildren.Count() == 0) { entry en = new entry(); en.MdiParent = this; en.Dock = DockStyle.Fill; en.Show(); } else { closeAll(); entry en = new entry(); en.MdiParent = this; en.Dock = DockStyle.Fill; en.Show(); } ribbonButton3.Enabled = true; ribbonButton6.Enabled = false; ribbonButton9.Enabled = false; }
public entry() { InitializeComponent(); form1 = this; }