Esempio n. 1
0
        /// <summary>
        /// Prompts the user for the output file and saves the current font set.
        /// </summary>
        void SaveAs()
        {
            var sfd = new SaveFileDialog();

            sfd.Title           = "XKeyboard - Export font set";
            sfd.Filter          = "eXtensible Markup Language file|*.xml";
            sfd.OverwritePrompt = true;
            sfd.CheckPathExists = true;
            //Show the save file dialog
            if (sfd.ShowDialog() == true)
            {
                xFont.SetFile(sfd.FileName);
                Save();
            }
        }