| 123456789101112131415161718192021222324252627282930313233 |
- using SHJX.Service.Control;
- using System.Windows;
- using SHJX.Service.Common.ReadXML;
- using SHJX.Service.Common.Logging;
- using Microsoft.Extensions.Logging;
- using SHJX.Service.ModelView;
- namespace SHJX.Service.View.View
- {
- /// <summary>
- /// DropMonitorForm.xaml 的交互逻辑
- /// </summary>
- public partial class DropMonitorForm : Window
- {
- private static readonly ILogger logger = LogFactory.BuildLogger(typeof(DropMonitorForm));
- private ReadConfigUtil config1 = new ReadConfigUtil();
- public DropMonitorForm(ReadConfigUtil config)
- {
- config1 = config;
- Owner = Application.Current.MainWindow;
- var view = new DropMonitorViewModel( config1); ;
- DataContext = view;
-
- InitializeComponent();
- DataCentre.GetCamera.ShowControl(ref pnlSignal, 0, 0, pnlSignal.Width, pnlSignal.Height);
- if (!DataCentre.GetCamera.IsOpened) DataCentre.GetCamera.OpenCamera();
-
-
- }
-
- }
- }
|