Remove logs in Navigation class
This commit is contained in:
@@ -76,32 +76,17 @@ public partial class Navigation : UserControl
|
||||
|
||||
public void PushPage(Page page)
|
||||
{
|
||||
Console.WriteLine($"Adding page {page.Title} to the page stack");
|
||||
_pageStack.Push(page);
|
||||
RefreshPage();
|
||||
PrintPageStack();
|
||||
}
|
||||
|
||||
public void PopPage()
|
||||
{
|
||||
if (_pageStack.Count == 1) return;
|
||||
Console.WriteLine($"Removing page {CurrentPage?.Title ?? "??"} from the page stack");
|
||||
_pageStack.Pop();
|
||||
RefreshPage();
|
||||
PrintPageStack();
|
||||
}
|
||||
|
||||
private void PrintPageStack()
|
||||
{
|
||||
var i = 0;
|
||||
foreach (var page in _pageStack)
|
||||
{
|
||||
Console.WriteLine($"{i} - {page.Title}");
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void RefreshPage()
|
||||
{
|
||||
if (_pageContainer == null || CurrentPage is null) return;
|
||||
|
||||
Reference in New Issue
Block a user