Esempio n. 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);
            }
        }
Esempio n. 2
0
 public void NewDocument()
 {
     CurrentGlyphSet = GlyphSet.CreateEmpty();
 }