Example #1
0
 public void Execute(HideCommand command)
 {
     foreach (var item in command.Node)
     {
         command.Filter.HideInFilter(item);
     }
 }
        private void OnErrorItemQuery(object sender, ErrorListItem e)
        {
            var shell = IoC.Get <IShell>();

            var editor =
                shell.Documents.OfType <ICodeEditor>()
                .FirstOrDefault(p => string.Equals(p.FilePath, e.Path, StringComparison.OrdinalIgnoreCase));

            if (editor == null)
            {
                return;
            }

            shell.OpenDocument(editor);
            HideCommand?.Execute(this);
            editor.Goto(e.Line ?? 0, Math.Max(0, e.Column ?? 0));
        }
Example #3
0
   public static void Unhide(TreeNode contextTn, IEnumerable<IMaxNode> contextNodes)
   {
      Throw.IfNull(contextNodes, "contextNodes");

      HideCommand cmd = new HideCommand(contextNodes, false);
      cmd.Execute(true);
   }