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 FrameCameraSetDialog : FloatingToolForm { private CameraParamModel m_cameraParamModel = Startup.instance.cameraParamModel; private FrameCameraSetControl m_control; public FrameCameraSetDialog() { InitializeComponent(); this.Text = PdnResources.GetString("Menu.ImageCollection.CameraSetting.Text"); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = false; } private void FrameCameraSetDialog_Load(object sender, EventArgs e) { m_control = new FrameCameraSetControl(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 FrameCameraSetDialog_Activated(object sender, EventArgs e) { //m_cameraParamModel = Startup.instance.cameraParamModel; //m_control.ReLoad(m_cameraParamModel, true); } #region 控件 private void InitializeComponent() { this.SuspendLayout(); // // FrameCameraSetDialog // 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 = "FrameCameraSetDialog"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Activated += new System.EventHandler(this.FrameCameraSetDialog_Activated); this.Load += new System.EventHandler(this.FrameCameraSetDialog_Load); this.ResumeLayout(false); } #endregion } }