summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BCDD.csproj1
-rw-r--r--PBNFile.cs19
-rw-r--r--Program.cs13
3 files changed, 33 insertions, 0 deletions
diff --git a/BCDD.csproj b/BCDD.csproj
index a9c6e13..4814531 100644
--- a/BCDD.csproj
+++ b/BCDD.csproj
@@ -48,6 +48,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="BCalcWrapper.cs" />
+ <Compile Include="PBNFile.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
diff --git a/PBNFile.cs b/PBNFile.cs
new file mode 100644
index 0000000..3f68756
--- /dev/null
+++ b/PBNFile.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.IO;
+
+namespace BCDD
+{
+ class PBNFile
+ {
+ private String filename;
+
+ public PBNFile(String filename)
+ {
+ this.filename = filename;
+ }
+
+ }
+}
diff --git a/Program.cs b/Program.cs
index b347025..e0a7149 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
+using System.Windows.Forms;
namespace BCDD
{
@@ -9,6 +10,18 @@ namespace BCDD
[STAThread]
static void Main(string[] args)
{
+ OpenFileDialog fd = new OpenFileDialog();
+ fd.Multiselect = true;
+ if (fd.ShowDialog() == DialogResult.OK)
+ {
+ foreach (String filename in fd.FileNames)
+ {
+ Console.WriteLine("Analyzing " + filename);
+ PBNFile file = new PBNFile(filename);
+ }
+ Console.WriteLine("Press any key to continue...");
+ Console.ReadLine();
+ }
}
}
}