|
|
@@ -171,13 +171,13 @@ namespace HKCardOUT.ViewModels |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
var SC = System.Windows.Forms.Screen.AllScreens.Count(); |
|
|
|
while (SC<3) |
|
|
|
{ |
|
|
|
SC = System.Windows.Forms.Screen.AllScreens.Count(); |
|
|
|
Thread.Sleep(1000); |
|
|
|
} |
|
|
|
for (int i = 0; i < SC; i++) |
|
|
|
//var SC = System.Windows.Forms.Screen.AllScreens.Count(); |
|
|
|
//while (SC<3) |
|
|
|
//{ |
|
|
|
// SC = System.Windows.Forms.Screen.AllScreens.Count(); |
|
|
|
// Thread.Sleep(1000); |
|
|
|
//} |
|
|
|
for (int i = 0; i < 3; i++) |
|
|
|
{ |
|
|
|
var win = new AdWindow(Ad[i].Ad, i); |
|
|
|
win.DataContext = new AdWindowViewModel(); |
|
|
@@ -185,7 +185,7 @@ namespace HKCardOUT.ViewModels |
|
|
|
win.Height = rectangle.Height; |
|
|
|
win.Width = rectangle.Width; |
|
|
|
win.Top = 0; |
|
|
|
win.Left = rectangle.Left; |
|
|
|
win.Left = i * 1920*-1;// rectangle.Left; |
|
|
|
win.Owner = this.Main; |
|
|
|
win.Show(); |
|
|
|
} |
|
|
|