Exemplo n.º 1
0
        public static async Task InitializeAsync(PsuedoLocPackage package)
        {
            await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

            OleMenuCommandService commandService = await package.GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService;

            Instance = new DiacriticsCommand(package, commandService);
        }
Exemplo n.º 2
0
        public string DiacriticsLogic(string input)
        {
            if (this.Mode == ToggleMode.NotSet)
            {
                this.Mode = this.GetToggleMode(input);
            }

            return(DiacriticsCommand.DiacriticsLogic(input, this.Mode));
        }