@@ -6,25 +6,28 @@ namespace SvgFileTypePlugin
6
6
{
7
7
public partial class UiDialog : Form
8
8
{
9
- public UiDialog ( )
10
- {
11
- InitializeComponent ( ) ;
12
- warningBox . Image = SystemIcons . Warning . ToBitmap ( ) ;
13
- }
14
-
15
- public int Dpi => ( int ) nudDpi . Value ;
16
- public int CanvasW => ( int ) canvasw . Value ;
17
- public int CanvasH => ( int ) canvash . Value ;
9
+ public int Dpi => ( int ) nudDpi . Value ;
10
+ public int CanvasW => ( int ) canvasw . Value ;
11
+ public int CanvasH => ( int ) canvash . Value ;
18
12
public bool KeepAspectRatio => cbKeepAR . Checked ;
19
- private Size _sizeHint ;
20
- private bool _changedProgramatically ;
21
- private int _originalPdi = 96 ;
22
13
public bool ImportOpacity => cbOpacity . Checked ;
23
14
public bool ImportHiddenLayers => cbLayers . Checked ;
24
15
public bool ImportGroupBoundariesAsLayers => cbPSDSupport . Checked ;
16
+ public event EventHandler OkClick ;
25
17
18
+ private const string VersionString = "0.3-alpha" ;
26
19
private const int BigImageSize = 1280 ;
27
- public event EventHandler OkClick ;
20
+ private Size _sizeHint ;
21
+ private bool _changedProgramatically ;
22
+ private int _originalPdi = 96 ;
23
+
24
+ public UiDialog ( )
25
+ {
26
+ InitializeComponent ( ) ;
27
+ warningBox . Image = SystemIcons . Warning . ToBitmap ( ) ;
28
+ Text = "SVG Import Plug-in v" + VersionString ;
29
+ }
30
+
28
31
public LayersMode LayerMode
29
32
{
30
33
get
@@ -38,6 +41,7 @@ public LayersMode LayerMode
38
41
{
39
42
return LayersMode . Flat ;
40
43
}
44
+
41
45
return LayersMode . Groups ;
42
46
}
43
47
}
@@ -152,14 +156,15 @@ private void ResolveControlsVisibility()
152
156
153
157
private void linkGitHub_LinkClicked ( object sender , LinkLabelLinkClickedEventArgs e )
154
158
{
155
- System . Diagnostics . Process . Start ( @"https://github.com/otuncelli/Scalable-Vector-Graphics-Plugin-for-Paint.NET" ) ;
159
+ System . Diagnostics . Process . Start (
160
+ @"https://github.com/otuncelli/Scalable-Vector-Graphics-Plugin-for-Paint.NET" ) ;
156
161
}
157
162
158
163
public void ReportProgress ( int value )
159
164
{
160
165
if ( progress . InvokeRequired )
161
166
{
162
- progress . BeginInvoke ( ( Action ) ( ( ) =>
167
+ progress . BeginInvoke ( ( Action ) ( ( ) =>
163
168
{
164
169
progress . Value = value ;
165
170
UpdateProgressLabel ( ) ;
@@ -181,7 +186,7 @@ public void SetMaxProgress(int max)
181
186
{
182
187
if ( progress . InvokeRequired )
183
188
{
184
- progress . BeginInvoke ( ( Action ) ( ( ) =>
189
+ progress . BeginInvoke ( ( Action ) ( ( ) =>
185
190
{
186
191
progress . Maximum = max ;
187
192
UpdateProgressLabel ( ) ;
@@ -200,4 +205,4 @@ private void btnOk_Click(object sender, EventArgs e)
200
205
OkClick ? . Invoke ( sender , e ) ;
201
206
}
202
207
}
203
- }
208
+ }
0 commit comments