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.Base.SettingModel; namespace PaintDotNet.ImageCollect.CameraComponent { internal class AdjustWhiteBalanceDialog : FloatingToolForm { #region /// /// Required designer variable. /// private System.ComponentModel.IContainer components = null; /// /// Clean up any resources being used. /// /// true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.SuspendLayout(); // // AdjustWhiteBalanceDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(650, 275); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "AdjustWhiteBalanceDialog"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Activated += new System.EventHandler(this.AdjustWhiteBalanceDialog_Activated); this.Load += new System.EventHandler(this.AdjustWhiteBalanceDialog_Load); this.ResumeLayout(false); } #endregion #endregion private CameraParamModel m_cameraParamModel = Startup.instance.cameraParamModel; private AdjustWhiteBalanceControl m_control; public AdjustWhiteBalanceDialog() { InitializeComponent(); this.Text = PdnResources.GetString("Menu.Image.WhiteBalance.Text"); } private void AdjustWhiteBalanceDialog_Load(object sender, EventArgs e) { m_control = new AdjustWhiteBalanceControl(m_cameraParamModel, true); m_control.Location = new Point(5, 5); this.Controls.Add(m_control); this.Width = m_control.Width + 30; this.Height = m_control.Height + 50; } private void AdjustWhiteBalanceDialog_Activated(object sender, EventArgs e) { m_cameraParamModel = Startup.instance.cameraParamModel; m_control.ReLoad(m_cameraParamModel, true); } } }