123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- 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 CommonRotateDialog : FloatingToolForm
- {
- private CameraParamModel m_cameraParamModel = Startup.instance.cameraParamModel;
- private CommonRotateControl m_control;
- public CommonRotateDialog()
- {
- m_control = new CommonRotateControl();
- m_control.Location = new Point(5, 5);
- this.Width = m_control.Width + 30;
- this.Height = m_control.Height + 50;
- this.Controls.Add(m_control);
- this.InitializeComponent();
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- }
- private void CommonRotateDialog_Load(object sender, EventArgs e)
- {
- m_control.Initialize();
- this.Text = PdnResources.GetString("Menu.Imagerotation.text");
- }
- #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);
- }
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.SuspendLayout();
- //
- // CommonRotateDialog
- //
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
- this.ClientSize = new System.Drawing.Size(509, 115);
- this.Name = "CommonRotateDialog";
- this.Padding = new System.Windows.Forms.Padding(15);
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Load += new System.EventHandler(this.CommonRotateDialog_Load);
- this.ResumeLayout(false);
- }
- #endregion
- }
- }
|