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;
        }
Exemple #2
0
 private void OpenFile(string filename)
 {
     UseWaitCursor = true;
     Application.DoEvents();
     var n = new FormEditor(this, filename);
     Editors.Add(n);
     n.Show();
     UseWaitCursor = false;
 }
Exemple #3
0
 private void newFromTemplateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var n = new FormEditor(this);
     Editors.Add(n);
     n.Show();
 }
Exemple #4
0
 private void newProgramToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var n = new FormEditor(this, null);
     Editors.Add(n);
     try
     {
         n.Show();
     }
     catch
     {
     }
 }