1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- 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;
- using PaintDotNet.Base.SettingModel;
- namespace PaintDotNet.ImageCollect
- {
- internal class AdjustSaturationDialog : 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.components = new System.ComponentModel.Container();
- this.timer1 = new System.Windows.Forms.Timer(this.components);
- this.SuspendLayout();
- //
- // timer1
- //
- this.timer1.Enabled = true;
- this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
- //
- // AdjustSaturationDialog
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
- this.ClientSize = new System.Drawing.Size(766, 265);
- this.Margin = new System.Windows.Forms.Padding(36, 19, 36, 19);
- this.Name = "AdjustSaturationDialog";
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Load += new System.EventHandler(this.AdjustSaturationDialog_Load);
- this.ResumeLayout(false);
- }
- #endregion
- #endregion
- private CameraParamModel m_cameraParamModel = Startup.instance.cameraParamModel;
- private Timer timer1;
- private AdjustSaturationControl m_control;
- public AdjustSaturationDialog()
- {
- InitializeComponent();
- this.Text = PdnResources.GetString("Menu.saturation.text");
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- }
- private void AdjustSaturationDialog_Load(object sender, EventArgs e)
- {
- m_control = new AdjustSaturationControl();
- m_control.Location = new Point(5, 5);
- this.Controls.Add(m_control);
- this.Width = m_control.Width + 30;
- this.Height = m_control.Height + 50;
- m_control.Initialize(m_cameraParamModel, true);
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- m_control.Enabled = Camera.CameraManager.IsLive;
- }
- }
- }
|