blob: 1f51d70c8a45aa4a3b7401b8a5888e43dab1d386 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using Avalonia.Markup.Xaml;
using UVtools.Core.Operations;
namespace UVtools.WPF.Controls.Tools
{
public class ToolRaftReliefControl : ToolControl
{
public OperationRaftRelief Operation => BaseOperation as OperationRaftRelief;
public ToolRaftReliefControl()
{
BaseOperation = new OperationRaftRelief(SlicerFile);
if (!ValidateSpawn()) return;
InitializeComponent();
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
public void UseCurrentLayerAsMask()
{
Operation.MaskLayerIndex = App.MainWindow.ActualLayer;
}
}
}
|