From 9616d664fd4d2d63a72c71db6ccf468c654a23a1 Mon Sep 17 00:00:00 2001 From: xxe Date: Sat, 24 Sep 2022 15:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E5=B9=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HKCardOUT/ViewModels/RootViewModel.cs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/HKCardOUT/ViewModels/RootViewModel.cs b/HKCardOUT/ViewModels/RootViewModel.cs index 5fc56ea..5384cab 100644 --- a/HKCardOUT/ViewModels/RootViewModel.cs +++ b/HKCardOUT/ViewModels/RootViewModel.cs @@ -142,6 +142,7 @@ namespace HKCardOUT.ViewModels private void AdOpen() { var SC = System.Windows.Forms.Screen.AllScreens.Count(); + for (int i = 0; i < SC; i++) { var win = new AdWindow(Ad[i].Ad); @@ -150,24 +151,10 @@ namespace HKCardOUT.ViewModels win.Width = rectangle.Width; win.Top = 0; win.Left = rectangle.Left; + win.WindowState = WindowState.Maximized; win.Owner = this.Main; win.Show(); } - - - - //for (int i = 0; i < Ad.Count; i++) - //{ - // var win = new Views.AdWindow(Ad[i].Ad); - // var rectangles = System.Windows.Forms.Screen.AllScreens[i].WorkingArea; - // win.Height = rectangles.Height; - // win.Width = rectangles.Width; - // win.Top = rectangles.Top; - // win.Left = rectangles.Left; - // win.Show(); - // win.Owner = this.Main; - //} - } #endregion