xxe 2 years ago
parent
commit
48ef011f9b
1 changed files with 27 additions and 0 deletions
  1. +27
    -0
      HKCardOUT/ViewModels/RootViewModel.cs

+ 27
- 0
HKCardOUT/ViewModels/RootViewModel.cs View File

@@ -2,15 +2,19 @@
using HKCardOUT.Helper; using HKCardOUT.Helper;
using HKCardOUT.Logic.Model; using HKCardOUT.Logic.Model;
using HKCardOUT.Logic.Service; using HKCardOUT.Logic.Service;
using ImTools;
using NStandard; using NStandard;
using S7.Net.Types;
using SqlSugar.DistributedSystem.Snowflake; using SqlSugar.DistributedSystem.Snowflake;
using Stylet; using Stylet;
using StyletIoC; using StyletIoC;
using System; using System;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Drawing;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading; using System.Threading;
using System.Windows;
using System.Windows.Documents; using System.Windows.Documents;
using System.Windows.Forms; using System.Windows.Forms;
using UHFHelper; using UHFHelper;
@@ -127,9 +131,32 @@ namespace HKCardOUT.ViewModels
timer.Start(); 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 #endregion


#region 命令 #region 命令




/// <summary> /// <summary>
/// 广告位置 /// 广告位置
/// </summary> /// </summary>


Loading…
Cancel
Save