public FormCharmapWindow(FormEditor parent, FontCollection fontCollection) { _parent = parent; InitializeComponent(); charmap.SetFontCollection(fontCollection); charmap.SelectedChar = (char)0; charmap.CellCountChanged += charmap_CellCountChanged; charmap.SelectedCharChanged += charmap_SelectedCharChanged; comboBoxPage.SelectedIndexChanged += comboBoxPage_SelectedIndexChanged; }
private void OpenFile(string filename) { UseWaitCursor = true; Application.DoEvents(); var n = new FormEditor(this, filename); Editors.Add(n); n.Show(); UseWaitCursor = false; }
private void newFromTemplateToolStripMenuItem_Click(object sender, EventArgs e) { var n = new FormEditor(this); Editors.Add(n); n.Show(); }
private void newProgramToolStripMenuItem_Click(object sender, EventArgs e) { var n = new FormEditor(this, null); Editors.Add(n); try { n.Show(); } catch { } }