-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathCreatePyramidsView.cs
More file actions
72 lines (58 loc) · 1.79 KB
/
Copy pathCreatePyramidsView.cs
File metadata and controls
72 lines (58 loc) · 1.79 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using System;
using System.Windows.Forms;
using MW5.Api.Enums;
using MW5.Api.Interfaces;
using MW5.Api.Static;
using MW5.UI.Forms;
using MW5.UI.Helpers;
using MW5.Views.Abstract;
namespace MW5.Views
{
public partial class CreatePyramidsView : CreatePyramidsViewBase, ICreatePyramidsView
{
public CreatePyramidsView()
{
InitializeComponent();
cboInterpolation.AddItemsFromEnum<RasterOverviewSampling>();
cboCompression.AddItemsFromEnum<TiffCompression>();
cboCompression.SetValue(MapConfig.CompressOverviews);
cboInterpolation.SetValue(RasterOverviewSampling.Nearest);
}
public void Initialize()
{
}
public ButtonBase OkButton
{
get { return null; }
}
private void btnYes_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Yes;
Invoke(ButtonClicked);
}
private void btnNo_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.No;
Invoke(ButtonClicked);
}
private void btnCancel_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Invoke(ButtonClicked);
}
public event Action ButtonClicked;
public TiffCompression Compression
{
get { return cboCompression.GetValue<TiffCompression>(); }
}
public RasterOverviewSampling Sampling
{
get { return cboInterpolation.GetValue<RasterOverviewSampling>(); }
}
public bool DontShowAgain
{
get { return chkDontShow.Checked; }
}
}
public class CreatePyramidsViewBase : MapWindowView<IRasterSource> { }
}