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