Skip to content

Commit 7a04c0e

Browse files
authored
Upgrade to Terminal.Gui 1.0 (#141)
1 parent 1afe52e commit 7a04c0e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Microsoft.PowerShell.ConsoleGuiTools/GridViewDataSource.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ public GridViewDataSource(List<GridViewRow> itemList)
2020
GridViewRowList = itemList;
2121
}
2222

23-
public bool IsMarked(int item) => GridViewRowList[item].IsMarked;
23+
public int Length { get; }
2424

25-
public void Render(ListView container, ConsoleDriver driver, bool selected, int item, int col, int line, int width)
25+
public void Render(ListView container, ConsoleDriver driver, bool selected, int item, int col, int line, int width, int start)
2626
{
2727
container.Move(col, line);
2828
RenderUstr(driver, GridViewRowList[item].DisplayString, col, line, width);
2929
}
3030

31+
public bool IsMarked(int item) => GridViewRowList[item].IsMarked;
32+
3133
public void SetMark(int item, bool value)
3234
{
3335
GridViewRowList[item].IsMarked = value;

src/Microsoft.PowerShell.ConsoleGuiTools/Microsoft.PowerShell.ConsoleGuiTools.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Nstack.Core" Version="0.14.0" />
9-
<PackageReference Include="Terminal.Gui" Version="0.90.3" />
8+
<PackageReference Include="Nstack.Core" Version="0.16.0" />
9+
<PackageReference Include="Terminal.Gui" Version="1.0" />
1010
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.2.1" />
1111
</ItemGroup>
1212

0 commit comments

Comments
 (0)