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 控件
///
/// 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);
}
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
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
}
}