Example #1
0
        public void OpenDocument()
        {
            openFilePath = dialogService.GetFileOpenPath("Open MAX7456 Font File", "Font Files|*.mcm;*.h|MCM Files|*.mcm|Header Files|*.h");

            if (openFilePath == null)
            {
                return;
            }

            if (Path.GetExtension(openFilePath) == ".mcm")
            {
                CurrentGlyphSet = GlyphSet.OpenMcmFile(openFilePath);
            }
            else if (Path.GetExtension(openFilePath) == ".h")
            {
                CurrentGlyphSet = GlyphSet.OpenHFile(openFilePath);
            }
        }
Example #2
0
 public void NewDocument()
 {
     CurrentGlyphSet = GlyphSet.CreateEmpty();
 }