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 PaintDotNet.ImageCollect.CameraComponent; using PaintDotNet.Base.SettingModel; namespace PaintDotNet.ImageCollect { /// /// 相机设置 /// internal class FrameCameraSet2Dialog : FloatingToolForm { private CameraParamModel m_cameraParamModel = Startup.instance.cameraParamModel; private FrameCameraSet2Control m_control; public FrameCameraSet2Dialog() { InitializeComponent(); this.Text = "ROI";// PdnResources.GetString("Menu.ImageCollection.CameraSetting.Text"); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = false; } private void FrameCameraSet2Dialog_Load(object sender, EventArgs e) { m_control = new FrameCameraSet2Control(m_cameraParamModel, true); m_control.Location = new Point(5, 5); this.Controls.Add(m_control); this.Width = m_control.Width + 20; this.Height = m_control.Height + 50; } private void FrameCameraSet2Dialog_Activated(object sender, EventArgs e) { //m_cameraParamModel = Startup.instance.cameraParamModel; //m_control.ReLoad(m_cameraParamModel, true); } #region 控件 private void InitializeComponent() { this.SuspendLayout(); // // FrameCameraSet2Dialog // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(566, 177); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FrameCameraSet2Dialog"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Activated += new System.EventHandler(this.FrameCameraSet2Dialog_Activated); this.Load += new System.EventHandler(this.FrameCameraSet2Dialog_Load); this.ResumeLayout(false); } #endregion } }