mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 05:13:58 -07:00
new startup process UI for Windows
This commit is contained in:
parent
eb42ef68ee
commit
c666f92e35
29 changed files with 1443 additions and 14 deletions
24
windows/WinUI/Switcher.cs
Normal file
24
windows/WinUI/Switcher.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Controls;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WinUI
|
||||
{
|
||||
public static class Switcher
|
||||
{
|
||||
public static PageSwitcher pageSwitcher;
|
||||
|
||||
public static void Switch(UserControl newPage)
|
||||
{
|
||||
pageSwitcher.Navigate(newPage);
|
||||
}
|
||||
|
||||
public static void Switch(UserControl newPage, object state)
|
||||
{
|
||||
pageSwitcher.Navigate(newPage, state);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue