diff --git a/AIS/bsmd.AISService/bsmd.AISService.sln b/AIS/bsmd.AISService/bsmd.AISService.sln index 4b965867..b90f496a 100644 --- a/AIS/bsmd.AISService/bsmd.AISService.sln +++ b/AIS/bsmd.AISService/bsmd.AISService.sln @@ -1,10 +1,12 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25123.0 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.28729.10 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bsmd.AISService", "bsmd.AISService.csproj", "{A26A6DE3-8505-4EC2-9EB5-12E5EBE83B11}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "puls200.AIS2Excel", "..\puls200.AIS2Excel\puls200.AIS2Excel.csproj", "{43C4011A-FB61-4426-93C0-D6C2C6B1A4C3}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,8 +17,15 @@ Global {A26A6DE3-8505-4EC2-9EB5-12E5EBE83B11}.Debug|Any CPU.Build.0 = Debug|Any CPU {A26A6DE3-8505-4EC2-9EB5-12E5EBE83B11}.Release|Any CPU.ActiveCfg = Release|Any CPU {A26A6DE3-8505-4EC2-9EB5-12E5EBE83B11}.Release|Any CPU.Build.0 = Release|Any CPU + {43C4011A-FB61-4426-93C0-D6C2C6B1A4C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {43C4011A-FB61-4426-93C0-D6C2C6B1A4C3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {43C4011A-FB61-4426-93C0-D6C2C6B1A4C3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {43C4011A-FB61-4426-93C0-D6C2C6B1A4C3}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {75938A51-365C-4F50-9A3F-FAEBB770350B} + EndGlobalSection EndGlobal diff --git a/AIS/puls200.AIS2Excel/AISVessel.cs b/AIS/puls200.AIS2Excel/AISVessel.cs new file mode 100644 index 00000000..c0f0869a --- /dev/null +++ b/AIS/puls200.AIS2Excel/AISVessel.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Data; +using System.Data.SqlClient; +using System.IO; + +namespace puls200.AIS2Excel +{ + public static class AISVessel + { + const string ExportQuery = "SELECT aisposreport.MMSI, aisposreport.timestamp, aisposreport.latitude, aisposreport.longitude, aisposreport.stationid, aisposreport.cog, aisposreport.heading, aisposreport.navstatus, aisstaticdata.callsign, aisstaticdata.name, aisstaticdata.shiptype, aisstaticdata.classb, aisstaticdata.shipdescription " + + "FROM aisstaticdata JOIN aisposreport ON aisposreport.mmsi = aisstaticdata.mmsi " + + "WHERE lat lon timestamp ORDER BY posreport.timestamp"; + + + public static void Export(DateTime from, DateTime to, double ulLat, double ulLon, double lrLat, double lrLon, string filename) + { + using (StreamWriter sw = new StreamWriter(filename)) + { + + SqlConnection con = new SqlConnection(Properties.Settings.Default.ConnectionString); + con.Open(); + + SqlCommand cmd = new SqlCommand(ExportQuery, con); + IDataReader reader = cmd.ExecuteReader(); + createCsvFile(reader, sw); + reader.Close(); + con.Close(); + } + } + + public static void createCsvFile(IDataReader reader, StreamWriter writer) + { + const string Delimiter = "\""; + const string Separator = ","; + + // write header row + for (int columnCounter = 0; columnCounter < reader.FieldCount; columnCounter++) + { + if (columnCounter > 0) + { + writer.Write(Separator); + } + writer.Write(Delimiter + reader.GetName(columnCounter) + Delimiter); + } + writer.WriteLine(string.Empty); + + // data loop + while (reader.Read()) + { + // column loop + for (int columnCounter = 0; columnCounter < reader.FieldCount; columnCounter++) + { + if (columnCounter > 0) + { + writer.Write(Separator); + } + writer.Write(Delimiter + reader.GetValue(columnCounter).ToString().Replace('"', '\'') + Delimiter); + } // end of column loop + writer.WriteLine(string.Empty); + } // data loop + + writer.Flush(); + } + + } +} diff --git a/AIS/puls200.AIS2Excel/App.config b/AIS/puls200.AIS2Excel/App.config new file mode 100644 index 00000000..37de7fc6 --- /dev/null +++ b/AIS/puls200.AIS2Excel/App.config @@ -0,0 +1,18 @@ + + + + +
+ + + + + + + + + + + + + \ No newline at end of file diff --git a/AIS/puls200.AIS2Excel/Main.Designer.cs b/AIS/puls200.AIS2Excel/Main.Designer.cs new file mode 100644 index 00000000..710e3e04 --- /dev/null +++ b/AIS/puls200.AIS2Excel/Main.Designer.cs @@ -0,0 +1,318 @@ +namespace puls200.AIS2Excel +{ + partial class Main + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.numericUpDownULLongitude = new System.Windows.Forms.NumericUpDown(); + this.numericUpDownULLatitude = new System.Windows.Forms.NumericUpDown(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.numericUpDownLRLongitude = new System.Windows.Forms.NumericUpDown(); + this.numericUpDownLRLatitude = new System.Windows.Forms.NumericUpDown(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.textBoxExportFile = new System.Windows.Forms.TextBox(); + this.buttonFileBrowse = new System.Windows.Forms.Button(); + this.buttonExport = new System.Windows.Forms.Button(); + this.label6 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.dateTimePickerFrom = new System.Windows.Forms.DateTimePicker(); + this.dateTimePickerTo = new System.Windows.Forms.DateTimePicker(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownULLongitude)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownULLatitude)).BeginInit(); + this.groupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLRLongitude)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLRLatitude)).BeginInit(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(6, 52); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(54, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Longitude"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(6, 26); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(45, 13); + this.label2.TabIndex = 1; + this.label2.Text = "Latitude"; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.numericUpDownULLongitude); + this.groupBox1.Controls.Add(this.numericUpDownULLatitude); + this.groupBox1.Controls.Add(this.label2); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Location = new System.Drawing.Point(12, 12); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(182, 83); + this.groupBox1.TabIndex = 2; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Upper left corner"; + // + // numericUpDownULLongitude + // + this.numericUpDownULLongitude.DecimalPlaces = 2; + this.numericUpDownULLongitude.Location = new System.Drawing.Point(89, 50); + this.numericUpDownULLongitude.Maximum = new decimal(new int[] { + 180, + 0, + 0, + 0}); + this.numericUpDownULLongitude.Minimum = new decimal(new int[] { + 180, + 0, + 0, + -2147483648}); + this.numericUpDownULLongitude.Name = "numericUpDownULLongitude"; + this.numericUpDownULLongitude.Size = new System.Drawing.Size(83, 20); + this.numericUpDownULLongitude.TabIndex = 3; + // + // numericUpDownULLatitude + // + this.numericUpDownULLatitude.DecimalPlaces = 2; + this.numericUpDownULLatitude.Location = new System.Drawing.Point(89, 24); + this.numericUpDownULLatitude.Maximum = new decimal(new int[] { + 90, + 0, + 0, + 0}); + this.numericUpDownULLatitude.Minimum = new decimal(new int[] { + 90, + 0, + 0, + -2147483648}); + this.numericUpDownULLatitude.Name = "numericUpDownULLatitude"; + this.numericUpDownULLatitude.Size = new System.Drawing.Size(83, 20); + this.numericUpDownULLatitude.TabIndex = 2; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.numericUpDownLRLongitude); + this.groupBox2.Controls.Add(this.numericUpDownLRLatitude); + this.groupBox2.Controls.Add(this.label4); + this.groupBox2.Controls.Add(this.label3); + this.groupBox2.Location = new System.Drawing.Point(200, 12); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(186, 83); + this.groupBox2.TabIndex = 3; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "Lower right corner"; + // + // numericUpDownLRLongitude + // + this.numericUpDownLRLongitude.DecimalPlaces = 2; + this.numericUpDownLRLongitude.Location = new System.Drawing.Point(92, 50); + this.numericUpDownLRLongitude.Maximum = new decimal(new int[] { + 180, + 0, + 0, + 0}); + this.numericUpDownLRLongitude.Minimum = new decimal(new int[] { + 180, + 0, + 0, + -2147483648}); + this.numericUpDownLRLongitude.Name = "numericUpDownLRLongitude"; + this.numericUpDownLRLongitude.Size = new System.Drawing.Size(83, 20); + this.numericUpDownLRLongitude.TabIndex = 4; + // + // numericUpDownLRLatitude + // + this.numericUpDownLRLatitude.DecimalPlaces = 2; + this.numericUpDownLRLatitude.Location = new System.Drawing.Point(92, 24); + this.numericUpDownLRLatitude.Maximum = new decimal(new int[] { + 90, + 0, + 0, + 0}); + this.numericUpDownLRLatitude.Minimum = new decimal(new int[] { + 90, + 0, + 0, + -2147483648}); + this.numericUpDownLRLatitude.Name = "numericUpDownLRLatitude"; + this.numericUpDownLRLatitude.Size = new System.Drawing.Size(83, 20); + this.numericUpDownLRLatitude.TabIndex = 5; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(6, 26); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(45, 13); + this.label4.TabIndex = 4; + this.label4.Text = "Latitude"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(6, 52); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(54, 13); + this.label3.TabIndex = 4; + this.label3.Text = "Longitude"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(18, 166); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(79, 13); + this.label5.TabIndex = 4; + this.label5.Text = "Output file path"; + // + // textBoxExportFile + // + this.textBoxExportFile.Location = new System.Drawing.Point(101, 163); + this.textBoxExportFile.Name = "textBoxExportFile"; + this.textBoxExportFile.Size = new System.Drawing.Size(254, 20); + this.textBoxExportFile.TabIndex = 5; + // + // buttonFileBrowse + // + this.buttonFileBrowse.Location = new System.Drawing.Point(359, 162); + this.buttonFileBrowse.Name = "buttonFileBrowse"; + this.buttonFileBrowse.Size = new System.Drawing.Size(27, 22); + this.buttonFileBrowse.TabIndex = 6; + this.buttonFileBrowse.Text = "..."; + this.buttonFileBrowse.UseVisualStyleBackColor = true; + this.buttonFileBrowse.Click += new System.EventHandler(this.ButtonFileBrowse_Click); + // + // buttonExport + // + this.buttonExport.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); + this.buttonExport.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonExport.Location = new System.Drawing.Point(101, 189); + this.buttonExport.Name = "buttonExport"; + this.buttonExport.Size = new System.Drawing.Size(83, 23); + this.buttonExport.TabIndex = 7; + this.buttonExport.Text = "Export"; + this.buttonExport.UseVisualStyleBackColor = false; + this.buttonExport.Click += new System.EventHandler(this.ButtonExport_Click); + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(18, 108); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(30, 13); + this.label6.TabIndex = 8; + this.label6.Text = "From"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(18, 134); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(20, 13); + this.label7.TabIndex = 9; + this.label7.Text = "To"; + // + // dateTimePickerFrom + // + this.dateTimePickerFrom.CustomFormat = "dd.mm.yyyy HH:MM"; + this.dateTimePickerFrom.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePickerFrom.Location = new System.Drawing.Point(101, 102); + this.dateTimePickerFrom.Name = "dateTimePickerFrom"; + this.dateTimePickerFrom.Size = new System.Drawing.Size(254, 20); + this.dateTimePickerFrom.TabIndex = 10; + // + // dateTimePickerTo + // + this.dateTimePickerTo.CustomFormat = "dd.mm.yyyy HH:MM"; + this.dateTimePickerTo.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePickerTo.Location = new System.Drawing.Point(101, 128); + this.dateTimePickerTo.Name = "dateTimePickerTo"; + this.dateTimePickerTo.Size = new System.Drawing.Size(254, 20); + this.dateTimePickerTo.TabIndex = 11; + // + // Main + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(401, 219); + this.Controls.Add(this.dateTimePickerTo); + this.Controls.Add(this.dateTimePickerFrom); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.buttonExport); + this.Controls.Add(this.buttonFileBrowse); + this.Controls.Add(this.textBoxExportFile); + this.Controls.Add(this.label5); + this.Controls.Add(this.groupBox2); + this.Controls.Add(this.groupBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.Name = "Main"; + this.Text = "Export AIS data to CSV"; + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownULLongitude)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownULLatitude)).EndInit(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLRLongitude)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLRLatitude)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.NumericUpDown numericUpDownULLongitude; + private System.Windows.Forms.NumericUpDown numericUpDownULLatitude; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.NumericUpDown numericUpDownLRLongitude; + private System.Windows.Forms.NumericUpDown numericUpDownLRLatitude; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox textBoxExportFile; + private System.Windows.Forms.Button buttonFileBrowse; + private System.Windows.Forms.Button buttonExport; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.DateTimePicker dateTimePickerFrom; + private System.Windows.Forms.DateTimePicker dateTimePickerTo; + } +} + diff --git a/AIS/puls200.AIS2Excel/Main.cs b/AIS/puls200.AIS2Excel/Main.cs new file mode 100644 index 00000000..4ac2fd61 --- /dev/null +++ b/AIS/puls200.AIS2Excel/Main.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace puls200.AIS2Excel +{ + public partial class Main : Form + { + public Main() + { + InitializeComponent(); + } + + protected override void OnLoad(EventArgs e) + { + base.OnLoad(e); + // Default: last 12 hours + this.dateTimePickerTo.Value = DateTime.Now; + this.dateTimePickerFrom.Value = DateTime.Now.AddHours(-12); + } + + private void ButtonFileBrowse_Click(object sender, EventArgs e) + { + using (SaveFileDialog ofd = new SaveFileDialog()) + { + ofd.Filter = "csv files (*.csv)|*.csv|All files (*.*)|*.*"; + if(ofd.ShowDialog() == DialogResult.OK) + { + this.textBoxExportFile.Text = ofd.FileName; + } + } + } + + private void ButtonExport_Click(object sender, EventArgs e) + { + try + { + AISVessel.Export(this.dateTimePickerFrom.Value, this.dateTimePickerTo.Value, + (double) this.numericUpDownULLatitude.Value, (double) this.numericUpDownULLongitude.Value, + (double)this.numericUpDownLRLatitude.Value, (double) this.numericUpDownLRLongitude.Value, + this.textBoxExportFile.Text); + MessageBox.Show("data exported"); + } + catch(Exception ex) + { + MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } +} diff --git a/AIS/puls200.AIS2Excel/Main.resx b/AIS/puls200.AIS2Excel/Main.resx new file mode 100644 index 00000000..29dcb1b3 --- /dev/null +++ b/AIS/puls200.AIS2Excel/Main.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AIS/puls200.AIS2Excel/Program.cs b/AIS/puls200.AIS2Excel/Program.cs new file mode 100644 index 00000000..6da4e09d --- /dev/null +++ b/AIS/puls200.AIS2Excel/Program.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace puls200.AIS2Excel +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + private static void Main(string[] args) + { + if ((args == null) || (args.Length == 0)) + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Main()); + } + } + } +} diff --git a/AIS/puls200.AIS2Excel/Properties/AssemblyInfo.cs b/AIS/puls200.AIS2Excel/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..7ff8f8e8 --- /dev/null +++ b/AIS/puls200.AIS2Excel/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 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("puls200.AIS2Excel")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("puls200.AIS2Excel")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("43c4011a-fb61-4426-93c0-d6c2c6b1a4c3")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/AIS/puls200.AIS2Excel/Properties/Resources.Designer.cs b/AIS/puls200.AIS2Excel/Properties/Resources.Designer.cs new file mode 100644 index 00000000..97e8db4d --- /dev/null +++ b/AIS/puls200.AIS2Excel/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace puls200.AIS2Excel.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [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 + { + + 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() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [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("puls200.AIS2Excel.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/AIS/puls200.AIS2Excel/Properties/Resources.resx b/AIS/puls200.AIS2Excel/Properties/Resources.resx new file mode 100644 index 00000000..ffecec85 --- /dev/null +++ b/AIS/puls200.AIS2Excel/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AIS/puls200.AIS2Excel/Properties/Settings.Designer.cs b/AIS/puls200.AIS2Excel/Properties/Settings.Designer.cs new file mode 100644 index 00000000..b9417999 --- /dev/null +++ b/AIS/puls200.AIS2Excel/Properties/Settings.Designer.cs @@ -0,0 +1,35 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace puls200.AIS2Excel.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.0.0.0")] + 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 { + return defaultInstance; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string ConnectionString { + get { + return ((string)(this["ConnectionString"])); + } + } + } +} diff --git a/AIS/puls200.AIS2Excel/Properties/Settings.settings b/AIS/puls200.AIS2Excel/Properties/Settings.settings new file mode 100644 index 00000000..f1d673f4 --- /dev/null +++ b/AIS/puls200.AIS2Excel/Properties/Settings.settings @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/AIS/puls200.AIS2Excel/puls200.AIS2Excel.csproj b/AIS/puls200.AIS2Excel/puls200.AIS2Excel.csproj new file mode 100644 index 00000000..c036c31f --- /dev/null +++ b/AIS/puls200.AIS2Excel/puls200.AIS2Excel.csproj @@ -0,0 +1,84 @@ + + + + + Debug + AnyCPU + {43C4011A-FB61-4426-93C0-D6C2C6B1A4C3} + WinExe + puls200.AIS2Excel + puls200.AIS2Excel + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + Form + + + Main.cs + + + + + Main.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file