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); }
public string DiacriticsLogic(string input) { if (this.Mode == ToggleMode.NotSet) { this.Mode = this.GetToggleMode(input); } return(DiacriticsCommand.DiacriticsLogic(input, this.Mode)); }