Skip to content

Commit 4ffd9a4

Browse files
committed
Add a LoadOperationHistory method
1 parent d8e7575 commit 4ffd9a4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/UniGetUI/Pages/AdvancedOperationHistoryPage.xaml.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,28 @@ public AdvancedOperationHistoryPage()
2727
{
2828
InitializeComponent();
2929

30+
AdvancedOperationHistoryList.ItemsSource = Items;
31+
}
32+
33+
private void LoadOperationHistory()
34+
{
35+
Items.Clear();
36+
3037
Items.Add(new OperationHistoryEntry { Title = "Test 1", Content = "Content 1" });
3138
Items.Add(new OperationHistoryEntry { Title = "Test 2", Content = "Content 2" });
3239
Items.Add(new OperationHistoryEntry { Title = "Test 3", Content = "Content 3" });
3340
Items.Add(new OperationHistoryEntry { Title = "Test 4", Content = "Content 4" });
3441
Items.Add(new OperationHistoryEntry { Title = "Test 5", Content = "Content 5" });
35-
36-
AdvancedOperationHistoryList.ItemsSource = Items;
3742
}
3843

3944
public void ReloadTriggered()
40-
{ }
45+
=> LoadOperationHistory();
4146
public void SelectAllTriggered()
4247
{ }
4348
public void SearchTriggered()
4449
{ }
4550
public void OnEnter()
46-
{ }
51+
=> LoadOperationHistory();
4752
public void OnLeave()
4853
{ }
4954
}

0 commit comments

Comments
 (0)