🔀 禁用窗口最大化

This commit is contained in:
BookerLiu
2023-04-23 20:58:12 +08:00
parent 2df6582f83
commit ac8302280f
9 changed files with 31 additions and 4 deletions

View File

@@ -50,6 +50,8 @@ namespace GeekDesk
public static int colorPickerHotKeyId = -1;
public static MainWindow mainWindow;
private static bool dataFileExist = true;
public MainWindow()
{
@@ -57,6 +59,7 @@ namespace GeekDesk
//加载数据
LoadData();
InitializeComponent();
//用于其他类访问
mainWindow = this;
@@ -72,10 +75,13 @@ namespace GeekDesk
}
private void Window_SourceInitialized(object sender, EventArgs e)
{
//禁用窗口最大化
WindowUtil.DisableMaxWindow(this);
}
/// <summary>
/// 搜索快捷键按下