forked from NCDyson/StudioCCS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmExportToObj.cs
60 lines (56 loc) · 1.26 KB
/
frmExportToObj.cs
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
/*
* Created by SharpDevelop.
* User: NCDyson
* Date: 10/23/2017
* Time: 1:47 AM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Drawing;
using System.Windows.Forms;
namespace StudioCCS
{
/// <summary>
/// Description of Form1.
/// </summary>
public partial class frmExportToOBJ : Form
{
public frmExportToOBJ()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
void BtnSelectDirClick(object sender, EventArgs e)
{
using(var vfd = new SaveFileDialog())
{
vfd.FileName = "Export Here";
vfd.CheckFileExists = false;
vfd.Title = "Select directory to export to...";
DialogResult result = vfd.ShowDialog();
if(result == DialogResult.OK)
{
txtExportPath.Text = System.IO.Path.GetDirectoryName(vfd.FileName);
}
if(txtExportPath.Text == "")
{
btnDoExport.Enabled = false;
}
else
{
btnDoExport.Enabled = true;
}
}
}
void ChkExportCollisionCheckedChanged(object sender, EventArgs e)
{
chkSplitCollision.Enabled = chkExportCollision.Checked;
}
}
}