| Name | Message | Date |
|---|---|---|
| 📄 AvaloniaManager.cs | 1 month ago | |
| 📄 GridTreeWindow.cs | 1 month ago | |
| 📄 OutGridTree.cs | 1 month ago | |
| 📄 OutGridTree.csproj | 1 month ago | |
| 📄 packages.lock.json | 1 month ago |
📄
OutGridTree/OutGridTree.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Management.Automation; using System.Management.Automation.Internal; namespace OutGridTree; [Cmdlet(VerbsData.Out, "GridTree")] [Alias("ogt")] public sealed class OutGridTree : Cmdlet { [Parameter(Mandatory = true, Position = 0, ValueFromPipeline = true)] public PSObject InputObject { get; set; } = AutomationNull.Value; private GridTreeWindow? window; protected override void BeginProcessing() { window = AvaloniaManager.OpenWindow<GridTreeWindow>(); } protected override void ProcessRecord() { // TODO: Add record to window WriteDebug($"Processing record: {InputObject}"); } protected override void EndProcessing() { // TODO: Wait for window to close WriteDebug("End processing"); WriteDebug("Exited"); } protected override void StopProcessing() { // TODO: Close window WriteDebug("Stop processing"); window?.Close(); WriteDebug("Shutdown"); } }