|
|
@@ -2,15 +2,19 @@ |
|
|
|
using HKCardOUT.Helper; |
|
|
|
using HKCardOUT.Logic.Model; |
|
|
|
using HKCardOUT.Logic.Service; |
|
|
|
using ImTools; |
|
|
|
using NStandard; |
|
|
|
using S7.Net.Types; |
|
|
|
using SqlSugar.DistributedSystem.Snowflake; |
|
|
|
using Stylet; |
|
|
|
using StyletIoC; |
|
|
|
using System; |
|
|
|
using System.Collections.ObjectModel; |
|
|
|
using System.Drawing; |
|
|
|
using System.Linq; |
|
|
|
using System.Text.RegularExpressions; |
|
|
|
using System.Threading; |
|
|
|
using System.Windows; |
|
|
|
using System.Windows.Documents; |
|
|
|
using System.Windows.Forms; |
|
|
|
using UHFHelper; |
|
|
@@ -127,9 +131,32 @@ namespace HKCardOUT.ViewModels |
|
|
|
timer.Start(); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void AdOpen() |
|
|
|
{ |
|
|
|
var SC = System.Windows.Forms.Screen.AllScreens.Count(); |
|
|
|
Rectangle[] rectangle = new Rectangle[SC]; |
|
|
|
|
|
|
|
for (int i = 0; i < Ad.Count; i++) |
|
|
|
{ |
|
|
|
var win = new Views.AdWindow(Ad[i].Ad); |
|
|
|
rectangle[i] = System.Windows.Forms.Screen.AllScreens[i].WorkingArea; |
|
|
|
win.Height = rectangle[i].Height; |
|
|
|
win.Width = rectangle[i].Width; |
|
|
|
win.Top = rectangle[i].Top; |
|
|
|
win.Left = rectangle[i].Left; |
|
|
|
win.Show(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
#region 命令 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 广告位置 |
|
|
|
/// </summary> |
|
|
|