123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- 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 AdjustGainDialog : FloatingToolForm
- {
- #region
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.SuspendLayout();
- //
- // AdjustGainDialog
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(647, 133);
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "AdjustGainDialog";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Activated += new System.EventHandler(this.AdjustGainDialog_Activated);
- this.Load += new System.EventHandler(this.AdjustGainDialog_Load);
- this.ResumeLayout(false);
- }
- #endregion
- #endregion
- private CameraParamModel m_cameraParamModel = Startup.instance.cameraParamModel;
- private AdjustGainControl m_control;
- public AdjustGainDialog()
- {
- InitializeComponent();
- this.Text = PdnResources.GetString("Menu.imagecapture.adjust.Gain.text");
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- }
- private void AdjustGainDialog_Load(object sender, EventArgs e)
- {
- m_control = new AdjustGainControl(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 AdjustGainDialog_Activated(object sender, EventArgs e)
- {
- m_cameraParamModel = Startup.instance.cameraParamModel;
- m_control.ReLoad(m_cameraParamModel, true);
- }
- }
- }
|