2
0

修改成即時更新

This commit is contained in:
DangHome
2023-07-05 20:45:59 +08:00
parent a8fd8f3f46
commit 6b656ead2d
4 changed files with 29 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
using System.Windows;
using System.Threading.Tasks;
using System.Windows;
namespace DellMonitorControl;
@@ -10,11 +11,12 @@ public partial class MainWindow : Window
public MainWindow()
{
InitializeComponent();
this.Hide();
taskbar.TrayPopupOpen += async (s, e) => await Taskbar_TrayPopupOpen(s, e);
}
private async void Window_Loaded(object sender, RoutedEventArgs e)
private async Task Taskbar_TrayPopupOpen(object sender, RoutedEventArgs e)
{
this.Hide();
await comtrolPanel.Init();
await comtrolPanel.Refresh();
}
}