Ejemplo n.º 1
0
        public void InstallFont(string fontFilePath)
        {
            var callback = OperationContext.Current.GetCallbackChannel <IFontInstallerCallbackService>();

            try
            {
                FontRegistry.RegisterFont(fontFilePath);
                callback.FontInstalledCallback(true, "");
                _log.WriteEntry("Font installed: " + fontFilePath, EventLogEntryType.Information);
            }
            catch (Exception e)
            {
                callback.FontInstalledCallback(false, e.Message);
            }
        }