mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-09 18:12:32 +02:00
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
/*
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE
|
|
* Version 3, 19 November 2007
|
|
* Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
* Everyone is permitted to copy and distribute verbatim copies
|
|
* of this license document, but changing it is not allowed.
|
|
*/
|
|
|
|
using System;
|
|
using UVtools.Core.Operations;
|
|
|
|
namespace UVtools.GUI.Controls.Tools
|
|
{
|
|
public partial class CtrlToolRotate : CtrlToolWindowContent
|
|
{
|
|
public OperationRotate Operation { get; }
|
|
|
|
public CtrlToolRotate()
|
|
{
|
|
InitializeComponent();
|
|
Operation = new OperationRotate();
|
|
SetOperation(Operation);
|
|
}
|
|
|
|
public override bool UpdateOperation()
|
|
{
|
|
base.UpdateOperation();
|
|
Operation.AngleDegrees = nmDegrees.Value;
|
|
return true;
|
|
}
|
|
|
|
private void EventValueChanged(object sender, EventArgs e)
|
|
{
|
|
ButtonOkEnabled = nmDegrees.Value != 0 && nmDegrees.Value != 360 && nmDegrees.Value != -360;
|
|
}
|
|
}
|
|
}
|