diff --git a/01_DCS/Export.lua b/01_DCS/Export.lua new file mode 100644 index 0000000..e69de29 diff --git a/02_Windows_App/Perun_v1.sln b/02_Windows_App/Perun_v1.sln new file mode 100644 index 0000000..a5af109 --- /dev/null +++ b/02_Windows_App/Perun_v1.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28307.421 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Perun_v1", "Perun_v1\Perun_v1.csproj", "{5A710507-92E9-4664-9B91-918B8B82F107}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5A710507-92E9-4664-9B91-918B8B82F107}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5A710507-92E9-4664-9B91-918B8B82F107}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5A710507-92E9-4664-9B91-918B8B82F107}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5A710507-92E9-4664-9B91-918B8B82F107}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {07690FE1-034E-4FB7-A5EB-61F7DD169E0E} + EndGlobalSection +EndGlobal diff --git a/02_Windows_App/Perun_v1/App.config b/02_Windows_App/Perun_v1/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/02_Windows_App/Perun_v1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/02_Windows_App/Perun_v1/Perun_v1.csproj b/02_Windows_App/Perun_v1/Perun_v1.csproj new file mode 100644 index 0000000..4fa822b --- /dev/null +++ b/02_Windows_App/Perun_v1/Perun_v1.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {5A710507-92E9-4664-9B91-918B8B82F107} + WinExe + Perun_v1 + Perun_v1 + v4.6.1 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + form_Main.cs + + + + + form_Main.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/02_Windows_App/Perun_v1/Program.cs b/02_Windows_App/Perun_v1/Program.cs new file mode 100644 index 0000000..0394a13 --- /dev/null +++ b/02_Windows_App/Perun_v1/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Perun_v1 +{ + static class Program + { + /// + /// Główny punkt wejścia dla aplikacji. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new form_Main()); + } + } +} diff --git a/02_Windows_App/Perun_v1/Properties/AssemblyInfo.cs b/02_Windows_App/Perun_v1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..8867272 --- /dev/null +++ b/02_Windows_App/Perun_v1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Ogólne informacje o zestawie są kontrolowane poprzez następujący +// zestaw atrybutów. Zmień wartości tych atrybutów, aby zmodyfikować informacje +// powiązane z zestawem. +[assembly: AssemblyTitle("Perun_v1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Perun_v1")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Ustawienie elementu ComVisible na wartość false sprawia, że typy w tym zestawie są niewidoczne +// dla składników COM. Jeśli potrzebny jest dostęp do typu w tym zestawie z +// COM, ustaw wartość true dla atrybutu ComVisible tego typu. +[assembly: ComVisible(false)] + +// Następujący identyfikator GUID jest identyfikatorem biblioteki typów w przypadku udostępnienia tego projektu w modelu COM +[assembly: Guid("5a710507-92e9-4664-9b91-918b8b82f107")] + +// Informacje o wersji zestawu zawierają następujące cztery wartości: +// +// Wersja główna +// Wersja pomocnicza +// Numer kompilacji +// Rewizja +// +// Możesz określić wszystkie wartości lub użyć domyślnych numerów kompilacji i poprawki +// przy użyciu symbolu „*”, tak jak pokazano poniżej: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/02_Windows_App/Perun_v1/Properties/Resources.Designer.cs b/02_Windows_App/Perun_v1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..3dcfd19 --- /dev/null +++ b/02_Windows_App/Perun_v1/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Ten kod został wygenerowany przez narzędzie. +// Wersja środowiska uruchomieniowego: 4.0.30319.42000 +// +// Modyfikacje tego pliku mogą spowodować niewłaściwe zachowanie i zostaną utracone +// w przypadku ponownego wygenerowania kodu. +// +//------------------------------------------------------------------------------ + +namespace Perun_v1.Properties +{ + + + /// + /// Silnie typizowana klasa zasobów do wyszukiwania zlokalizowanych ciągów itd. + /// + // Ta klasa została automatycznie wygenerowana za pomocą klasy StronglyTypedResourceBuilder + // przez narzędzie, takie jak ResGen lub Visual Studio. + // Aby dodać lub usunąć składowe, edytuj plik ResX, a następnie ponownie uruchom narzędzie ResGen + // z opcją /str lub ponownie skompiluj projekt programu VS. + [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() + { + } + + /// + /// Zwraca buforowane wystąpienie składnika ResourceManager używane przez tę klasę. + /// + [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("Perun_v1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Przesłania właściwość CurrentUICulture bieżącego wątku dla wszystkich + /// przypadków przeszukiwania zasobów za pomocą tej silnie typizowanej klasy zasobów. + /// + [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/02_Windows_App/Perun_v1/Properties/Resources.resx b/02_Windows_App/Perun_v1/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/02_Windows_App/Perun_v1/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/02_Windows_App/Perun_v1/Properties/Settings.Designer.cs b/02_Windows_App/Perun_v1/Properties/Settings.Designer.cs new file mode 100644 index 0000000..66c6209 --- /dev/null +++ b/02_Windows_App/Perun_v1/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// 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 Perun_v1.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 + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/02_Windows_App/Perun_v1/Properties/Settings.settings b/02_Windows_App/Perun_v1/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/02_Windows_App/Perun_v1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/02_Windows_App/Perun_v1/form_Main.Designer.cs b/02_Windows_App/Perun_v1/form_Main.Designer.cs new file mode 100644 index 0000000..9a68716 --- /dev/null +++ b/02_Windows_App/Perun_v1/form_Main.Designer.cs @@ -0,0 +1,73 @@ +namespace Perun_v1 +{ + partial class form_Main + { + /// + /// Wymagana zmienna projektanta. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Wyczyść wszystkie używane zasoby. + /// + /// prawda, jeżeli zarządzane zasoby powinny zostać zlikwidowane; Fałsz w przeciwnym wypadku. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Kod generowany przez Projektanta formularzy systemu Windows + + /// + /// Metoda wymagana do obsługi projektanta — nie należy modyfikować + /// jej zawartości w edytorze kodu. + /// + private void InitializeComponent() + { + this.con_List_Received = new System.Windows.Forms.ListBox(); + this.con_Button_DEBUG = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // con_List_Received + // + this.con_List_Received.FormattingEnabled = true; + this.con_List_Received.Location = new System.Drawing.Point(12, 12); + this.con_List_Received.Name = "con_List_Received"; + this.con_List_Received.Size = new System.Drawing.Size(594, 550); + this.con_List_Received.TabIndex = 0; + // + // con_Button_DEBUG + // + this.con_Button_DEBUG.Location = new System.Drawing.Point(612, 21); + this.con_Button_DEBUG.Name = "con_Button_DEBUG"; + this.con_Button_DEBUG.Size = new System.Drawing.Size(80, 48); + this.con_Button_DEBUG.TabIndex = 1; + this.con_Button_DEBUG.Text = "Debug"; + this.con_Button_DEBUG.UseVisualStyleBackColor = true; + this.con_Button_DEBUG.Click += new System.EventHandler(this.con_Button_DEBUG_Click); + // + // form_Main + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(738, 567); + this.Controls.Add(this.con_Button_DEBUG); + this.Controls.Add(this.con_List_Received); + this.Name = "form_Main"; + this.Text = "Perun for DCS World"; + this.Load += new System.EventHandler(this.form_Main_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ListBox con_List_Received; + private System.Windows.Forms.Button con_Button_DEBUG; + } +} + diff --git a/02_Windows_App/Perun_v1/form_Main.cs b/02_Windows_App/Perun_v1/form_Main.cs new file mode 100644 index 0000000..cfea823 --- /dev/null +++ b/02_Windows_App/Perun_v1/form_Main.cs @@ -0,0 +1,30 @@ +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 Perun_v1 +{ + public partial class form_Main : Form + { + public form_Main() + { + InitializeComponent(); + } + + private void con_Button_DEBUG_Click(object sender, EventArgs e) + { + con_List_Received.Items.Add("test"); + } + + private void form_Main_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/02_Windows_App/Perun_v1/form_Main.resx b/02_Windows_App/Perun_v1/form_Main.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/02_Windows_App/Perun_v1/form_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