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