mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-03-26 01:36:35 +08:00
传输优化
This commit is contained in:
44
FormLib/FormImageWindow.cs.cs
Normal file
44
FormLib/FormImageWindow.cs.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using ChoiceTech.Halcon.Control;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using WeifenLuo.WinFormsUI.Docking;
|
||||
|
||||
namespace FormLib
|
||||
{
|
||||
public partial class FormImageWindow : DockContent
|
||||
{
|
||||
public HWindow_Final myHWindow = new HWindow_Final();
|
||||
public FormImageWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
_instance = this;
|
||||
}
|
||||
public string m_fileName = string.Empty;
|
||||
/// <summary>
|
||||
/// 窗体对象实例
|
||||
/// </summary>
|
||||
private static FormImageWindow _instance;
|
||||
public static FormImageWindow Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_instance == null)
|
||||
_instance = new FormImageWindow();
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
private void FormImageWindow_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.panel1.Controls.Add(myHWindow);
|
||||
myHWindow.Dock = DockStyle.Fill;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user