|
|
@@ -173,21 +173,14 @@ 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 < 3; i++) |
|
|
|
{ |
|
|
|
var win = new AdWindow(Ad[i].Ad, i); |
|
|
|
win.DataContext = new AdWindowViewModel(); |
|
|
|
//var rectangle = System.Windows.Forms.Screen.AllScreens[i].WorkingArea; |
|
|
|
win.Height = 1080;//rectangle.Height; |
|
|
|
win.Width = 1920;//rectangle.Width; |
|
|
|
win.Height = 1080; |
|
|
|
win.Width = 1920; |
|
|
|
win.Top = 0; |
|
|
|
win.Left = i * 1920 * -1;// rectangle.Left; |
|
|
|
win.Left = i * 1920; |
|
|
|
win.Owner = this.Main; |
|
|
|
win.Show(); |
|
|
|
} |
|
|
|