Browse Source

屏幕

Lishi
xxe 2 years ago
parent
commit
9616d664fd
1 changed files with 2 additions and 15 deletions
  1. +2
    -15
      HKCardOUT/ViewModels/RootViewModel.cs

+ 2
- 15
HKCardOUT/ViewModels/RootViewModel.cs View File

@@ -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


Loading…
Cancel
Save