private void newSectionToolStripMenuItem_Click(object sender, EventArgs e) { SectionEditor se = new SectionEditor(); if (DialogResult.OK == se.ShowDialog()) { sectionMenuView.AddNewSection(se.section); sectionTabsView.readAndShow(); } else { model.sections.Remove(se.section); sectionTabsView.readAndShow(); } this.Width++; this.Width--; }
private void editSectionNameToolStripMenuItem_Click(object sender, EventArgs e) { MouseEventArgs me = e as MouseEventArgs; CToolStripButton tb = null; foreach (Section s in model.sections) { if (s.Selected) { tb = s.Button; } } if (tb != null) { SectionEditor se = new SectionEditor(model.currentSection); se.ShowDialog(); //sectionMenuView.readAndShow(); } }