Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Just some more work...

  • Loading branch information...
commit c23ab4377726e064a089c2279725279f43d251ec 1 parent dcb34a1
Allen Vailliencourt authored
2  CSV_Splitter_WF/CSV_Splitter_WF.sln
View
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsFormsApplication1", "WindowsFormsApplication1\WindowsFormsApplication1.csproj", "{49DA1B37-AC65-403A-A58F-07CFABBDDC95}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSVSplitter", "WindowsFormsApplication1\CSVSplitter.csproj", "{49DA1B37-AC65-403A-A58F-07CFABBDDC95}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
6 ...FormsApplication1/WindowsFormsApplication1.csproj → ...er_WF/WindowsFormsApplication1/CSVSplitter.csproj
View
@@ -7,8 +7,8 @@
<ProjectGuid>{49DA1B37-AC65-403A-A58F-07CFABBDDC95}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>WindowsFormsApplication1</RootNamespace>
- <AssemblyName>WindowsFormsApplication1</AssemblyName>
+ <RootNamespace>CSVSplitter</RootNamespace>
+ <AssemblyName>CSVSplitter</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
@@ -52,6 +52,7 @@
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="SplitCSV.cs" />
<EmbeddedResource Include="CSVSplitterForm.resx">
<DependentUpon>CSVSplitterForm.cs</DependentUpon>
</EmbeddedResource>
@@ -63,6 +64,7 @@
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
+ <DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
28 CSV_Splitter_WF/WindowsFormsApplication1/CSVSplitterForm.Designer.cs
View
@@ -1,4 +1,4 @@
-namespace WindowsFormsApplication1
+namespace CSVSplitter
{
partial class CSVSplitterForm
{
@@ -70,14 +70,34 @@ private void InitializeComponent()
//
// nol_NumericUpDown
//
+ this.nol_NumericUpDown.Increment = new decimal(new int[] {
+ 1000,
+ 0,
+ 0,
+ 0});
this.nol_NumericUpDown.Location = new System.Drawing.Point(103, 58);
+ this.nol_NumericUpDown.Maximum = new decimal(new int[] {
+ 10000000,
+ 0,
+ 0,
+ 0});
this.nol_NumericUpDown.Name = "nol_NumericUpDown";
this.nol_NumericUpDown.Size = new System.Drawing.Size(120, 20);
this.nol_NumericUpDown.TabIndex = 3;
+ this.nol_NumericUpDown.Value = new decimal(new int[] {
+ 50000,
+ 0,
+ 0,
+ 0});
//
// maxPieces_NumericUpDown
//
this.maxPieces_NumericUpDown.Location = new System.Drawing.Point(103, 88);
+ this.maxPieces_NumericUpDown.Maximum = new decimal(new int[] {
+ 100000,
+ 0,
+ 0,
+ 0});
this.maxPieces_NumericUpDown.Name = "maxPieces_NumericUpDown";
this.maxPieces_NumericUpDown.Size = new System.Drawing.Size(120, 20);
this.maxPieces_NumericUpDown.TabIndex = 4;
@@ -107,6 +127,7 @@ private void InitializeComponent()
this.splitNow_Button.TabIndex = 7;
this.splitNow_Button.Text = "Split Now!";
this.splitNow_Button.UseVisualStyleBackColor = true;
+ this.splitNow_Button.Click += new System.EventHandler(this.splitNow_Button_Click);
//
// cancel_Button
//
@@ -116,8 +137,9 @@ private void InitializeComponent()
this.cancel_Button.TabIndex = 8;
this.cancel_Button.Text = "Cancel";
this.cancel_Button.UseVisualStyleBackColor = true;
+ this.cancel_Button.Click += new System.EventHandler(this.cancel_Button_Click);
//
- // CVSSplitterForm
+ // CSVSplitterForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@@ -131,7 +153,7 @@ private void InitializeComponent()
this.Controls.Add(this.maxPiecesLabel);
this.Controls.Add(this.nolLabel);
this.Controls.Add(this.csvLabel);
- this.Name = "CVSSplitterForm";
+ this.Name = "CSVSplitterForm";
this.Text = "CVS Splitter";
((System.ComponentModel.ISupportInitialize)(this.nol_NumericUpDown)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.maxPieces_NumericUpDown)).EndInit();
17 CSV_Splitter_WF/WindowsFormsApplication1/CSVSplitterForm.cs
View
@@ -9,7 +9,7 @@
using System.Windows.Forms;
using System.IO;
-namespace WindowsFormsApplication1
+namespace CSVSplitter
{
public partial class CSVSplitterForm : Form
{
@@ -18,14 +18,27 @@ public CSVSplitterForm()
InitializeComponent();
}
+ private Boolean _IsAbort;
OpenFileDialog OFD = new OpenFileDialog();
private void browse_Button_Click(object sender, EventArgs e)
{
if (OFD.ShowDialog() == DialogResult.OK) {
- csv_TextBox.Text = "Success!"; //OFD.FileName();
+ csv_TextBox.Text = OFD.FileName.ToString();
}
}
+
+ private void cancel_Button_Click(object sender, EventArgs e)
+ {
+ this.Close();
+ }
+
+ private void splitNow_Button_Click(object sender, EventArgs e)
+ {
+
+ }
+
+
}
}
2  CSV_Splitter_WF/WindowsFormsApplication1/Program.cs
View
@@ -4,7 +4,7 @@
using System.Threading.Tasks;
using System.Windows.Forms;
-namespace WindowsFormsApplication1
+namespace CSVSplitter
{
static class Program
{
6 CSV_Splitter_WF/WindowsFormsApplication1/Properties/AssemblyInfo.cs
View
@@ -5,11 +5,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
-[assembly: AssemblyTitle("WindowsFormsApplication1")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyTitle("CSVSplitter")]
+[assembly: AssemblyDescription("Split those CSV Files!")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("WindowsFormsApplication1")]
+[assembly: AssemblyProduct("CSVSplitter")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
44 CSV_Splitter_WF/WindowsFormsApplication1/Properties/Resources.Designer.cs
View
@@ -8,10 +8,10 @@
// </auto-generated>
//------------------------------------------------------------------------------
-namespace WindowsFormsApplication1.Properties
-{
-
-
+namespace CSVSplitter.Properties {
+ using System;
+
+
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
@@ -22,48 +22,40 @@ namespace WindowsFormsApplication1.Properties
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources
- {
-
+ internal class Resources {
+
private static global::System.Resources.ResourceManager resourceMan;
-
+
private static global::System.Globalization.CultureInfo resourceCulture;
-
+
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources()
- {
+ internal Resources() {
}
-
+
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApplication1.Properties.Resources", typeof(Resources).Assembly);
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CSVSplitter.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
-
+
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
return resourceCulture;
}
- set
- {
+ set {
resourceCulture = value;
}
}
20 CSV_Splitter_WF/WindowsFormsApplication1/Properties/Settings.Designer.cs
View
@@ -8,21 +8,17 @@
// </auto-generated>
//------------------------------------------------------------------------------
-namespace WindowsFormsApplication1.Properties
-{
-
-
+namespace CSVSplitter.Properties {
+
+
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
- {
-
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default
- {
- get
- {
+
+ public static Settings Default {
+ get {
return defaultInstance;
}
}
19 CSV_Splitter_WF/WindowsFormsApplication1/SplitCSV.cs
View
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace CSVSplitter
+{
+ class SplitCSV
+ {
+ // Validate file first
+
+ }
+
+ class SplitIt
+ {
+ //split info
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.