Ejemplo n.º 1
0
 protected override void Execute(OleMenuCommand Button) =>
 TextSelection.GetSelection(Package, out int[] poses, out bool newLine).Select(x => (Row)x).OrderBy(x => x.Cleared.Length).ThenBy(x => x.Cleared).Select(x => (string)x).ReplaceSelection(poses, newLine);
Ejemplo n.º 2
0
 protected override void Execute(OleMenuCommand Button) =>
 TextSelection.GetSelection(Package, out int[] poses, out NewlineType newlineType, out bool newLine)
Ejemplo n.º 3
0
        public void AddSort(IUserSort Sort)
        {
            MenuCommandWrapper wrapper = Factory.Create(() => Sort.Sort(TextSelection.GetSelection(Package, Sort.EmptyLineAction, out int[] poses, out NewlineType newlineType, out bool was)).ReplaceSelection(Sort.EmptyLineAction, poses, newlineType, was), Sort.Name);

            wrapper.SetParameter("Guid", Sort.Guid);
        }