diff --git a/CurrencyConvert.csproj b/CurrencyConvert.csproj new file mode 100644 index 0000000..47412a4 --- /dev/null +++ b/CurrencyConvert.csproj @@ -0,0 +1,30 @@ + + + + WinExe + net8.0-windows + enable + true + enable + + + + + + + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + \ No newline at end of file diff --git a/CurrencyConvert.csproj.user b/CurrencyConvert.csproj.user new file mode 100644 index 0000000..7814ea2 --- /dev/null +++ b/CurrencyConvert.csproj.user @@ -0,0 +1,8 @@ + + + + + Form + + + diff --git a/CurrencyConvert.sln b/CurrencyConvert.sln new file mode 100644 index 0000000..1e44134 --- /dev/null +++ b/CurrencyConvert.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.13.35931.197 d17.13 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CurrencyConvert", "CurrencyConvert.csproj", "{7FDAB8B0-63A4-4E1E-943F-EF7EE17ABD48}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7FDAB8B0-63A4-4E1E-943F-EF7EE17ABD48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7FDAB8B0-63A4-4E1E-943F-EF7EE17ABD48}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7FDAB8B0-63A4-4E1E-943F-EF7EE17ABD48}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7FDAB8B0-63A4-4E1E-943F-EF7EE17ABD48}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9A7B8EE9-8571-41B1-9D43-7E411CF8FAF1} + EndGlobalSection +EndGlobal diff --git a/Form1.Designer.cs b/Form1.Designer.cs new file mode 100644 index 0000000..1d55abd --- /dev/null +++ b/Form1.Designer.cs @@ -0,0 +1,143 @@ +namespace CurrencyConvert +{ + partial class Form1 + { + + private System.ComponentModel.IContainer components = null; + + + + 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() + { + comboBox1 = new ComboBox(); + comboBox2 = new ComboBox(); + label1 = new Label(); + label2 = new Label(); + textBox1 = new TextBox(); + label3 = new Label(); + button1 = new Button(); + label4 = new Label(); + SuspendLayout(); + // + // comboBox1 + // + comboBox1.FormattingEnabled = true; + comboBox1.Items.AddRange(new object[] { "AED ", "ARS ", "AUD ", "BGN ", "BRL ", "BSD ", "CAD ", "CHF ", "CLP ", "CNY ", "COP ", "CZK ", "DKK ", "DOP ", "EGP ", "EUR ", "FJD ", "GBP ", "GTQ ", "HKD ", "HRK ", "HUF ", "IDR ", "ILS ", "INR ", "ISK ", "JPY ", "KRW ", "KZT ", "MXN ", "MYR ", "NOK ", "NZD ", "PAB ", "PEN ", "PHP ", "PKR" }); + comboBox1.Location = new Point(27, 31); + comboBox1.Name = "comboBox1"; + comboBox1.Size = new Size(151, 28); + comboBox1.TabIndex = 0; + comboBox1.SelectedIndexChanged += comboBox1_SelectedIndexChanged; + // + // comboBox2 + // + comboBox2.FormattingEnabled = true; + comboBox2.Items.AddRange(new object[] { "AED ", "ARS ", "AUD ", "BGN ", "BRL ", "BSD ", "CAD ", "CHF ", "CLP ", "CNY ", "COP ", "CZK ", "DKK ", "DOP ", "EGP ", "EUR ", "FJD ", "GBP ", "GTQ ", "HKD ", "HRK ", "HUF ", "IDR ", "ILS ", "INR ", "ISK ", "JPY ", "KRW ", "KZT ", "MXN ", "MYR ", "NOK ", "NZD ", "PAB ", "PEN ", "PHP ", "PKR" }); + comboBox2.Location = new Point(27, 79); + comboBox2.Name = "comboBox2"; + comboBox2.Size = new Size(151, 28); + comboBox2.TabIndex = 1; + // + // label1 + // + label1.AutoSize = true; + label1.Location = new Point(184, 34); + label1.Name = "label1"; + label1.Size = new Size(97, 20); + label1.TabIndex = 2; + label1.Text = "Von Währung"; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new Point(184, 82); + label2.Name = "label2"; + label2.Size = new Size(89, 20); + label2.TabIndex = 3; + label2.Text = "Zu Währung"; + // + // textBox1 + // + textBox1.Location = new Point(27, 129); + textBox1.Name = "textBox1"; + textBox1.Size = new Size(151, 27); + textBox1.TabIndex = 4; + textBox1.KeyPress += textBox1_KeyPress; + // + // label3 + // + label3.AutoSize = true; + label3.Location = new Point(184, 132); + label3.Name = "label3"; + label3.Size = new Size(144, 20); + label3.TabIndex = 5; + label3.Text = "Menge der Währung"; + // + // button1 + // + button1.Font = new Font("Segoe UI", 9F, FontStyle.Bold); + button1.ForeColor = Color.BlanchedAlmond; + button1.Image = Properties.Resources.Euro1; + button1.Location = new Point(27, 177); + button1.Name = "button1"; + button1.Size = new Size(151, 47); + button1.TabIndex = 6; + button1.Text = "Umrechnen"; + button1.UseVisualStyleBackColor = true; + button1.Click += button1_Click; + // + // label4 + // + label4.AutoSize = true; + label4.Location = new Point(28, 263); + label4.Name = "label4"; + label4.Size = new Size(66, 20); + label4.TabIndex = 7; + label4.Text = "Ergebnis"; + // + // Form1 + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(709, 496); + Controls.Add(label4); + Controls.Add(button1); + Controls.Add(label3); + Controls.Add(textBox1); + Controls.Add(label2); + Controls.Add(label1); + Controls.Add(comboBox2); + Controls.Add(comboBox1); + Name = "Form1"; + Text = "Form1"; + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private ComboBox comboBox1; + private ComboBox comboBox2; + private Label label1; + private Label label2; + private TextBox textBox1; + private Label label3; + private Button button1; + private Label label4; + } +} diff --git a/Form1.cs b/Form1.cs new file mode 100644 index 0000000..9be3c23 --- /dev/null +++ b/Form1.cs @@ -0,0 +1,133 @@ +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace CurrencyConvert +{ + public partial class Form1 : Form + { + + private readonly HashSet supportedCurrencies = new HashSet + { + "AUD", "BGN", "BRL", "CAD", "CHF", "CNY", "CZK", "DKK", + "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "ISK", + "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PLN", + "RON", "SEK", "SGD", "THB", "TRY", "USD", "ZAR" + }; + + public Form1() + { + InitializeComponent(); + + + comboBox1.Items.Clear(); + comboBox2.Items.Clear(); + foreach (string currency in supportedCurrencies) + { + comboBox1.Items.Add(currency); + comboBox2.Items.Add(currency); + } + + comboBox1.SelectedIndex = comboBox1.Items.IndexOf("EUR"); + comboBox2.SelectedIndex = comboBox2.Items.IndexOf("USD"); + + + label4.AutoSize = true; + label4.Font = new Font(label4.Font.FontFamily, 12, FontStyle.Bold); + } + + private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) + { + + } + + private void textBox1_KeyPress(object sender, KeyPressEventArgs e) + { + if (!char.IsDigit(e.KeyChar) && e.KeyChar != ',' && e.KeyChar != '.' && e.KeyChar != (char)Keys.Back) + { + e.Handled = true; + } + } + + private async void button1_Click(object sender, EventArgs e) + { + try + { + + label4.Text = "Berechne..."; + button1.Enabled = false; + + if (string.IsNullOrWhiteSpace(textBox1.Text)) + { + MessageBox.Show("Bitte geben Sie einen Betrag ein."); + return; + } + + + string amount = textBox1.Text.Replace(',', '.'); + if (!double.TryParse(amount, System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture, out double menge)) + { + MessageBox.Show("Bitte geben Sie einen gültigen Betrag ein."); + return; + } + + if (comboBox1.SelectedItem == null || comboBox2.SelectedItem == null) + { + MessageBox.Show("Bitte wählen Sie beide Währungen aus."); + return; + } + + string von = comboBox1.SelectedItem.ToString().Trim().ToUpper(); + string zu = comboBox2.SelectedItem.ToString().Trim().ToUpper(); + + if (!supportedCurrencies.Contains(von) || !supportedCurrencies.Contains(zu)) + { + MessageBox.Show($"Eine oder beide Währungen werden nicht unterstützt.\nUnterstützte Währungen: {string.Join(", ", supportedCurrencies)}"); + return; + } + + + string url = $"https://api.frankfurter.app/latest?amount={amount}&from={von}&to={zu}"; + + using (HttpClient client = new HttpClient()) + { + var response = await client.GetAsync(url); + string json = await response.Content.ReadAsStringAsync(); + + if (!response.IsSuccessStatusCode) + { + MessageBox.Show("Fehler beim Abrufen der Wechselkurse."); + return; + } + + var data = JsonConvert.DeserializeObject(json); + + if (data?.rates == null || !data.rates.ContainsKey(zu)) + { + MessageBox.Show("Fehler beim Abrufen der Wechselkurse."); + return; + } + + double ergebnis = data.rates[zu]; + label4.Text = $"{menge} {von} = {ergebnis:0.00} {zu}"; + } + } + catch (Exception) + { + MessageBox.Show("Ein Fehler ist aufgetreten. Bitte versuchen Sie es später erneut."); + } + finally + { + button1.Enabled = true; + } + } + } + + public class FrankfurterResponse + { + public double amount { get; set; } + public string base_currency { get; set; } + public string date { get; set; } + public Dictionary rates { get; set; } + } +} + diff --git a/Form1.resx b/Form1.resx new file mode 100644 index 0000000..8b2ff64 --- /dev/null +++ b/Form1.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/Program.cs b/Program.cs new file mode 100644 index 0000000..00a130b --- /dev/null +++ b/Program.cs @@ -0,0 +1,17 @@ +namespace CurrencyConvert +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs new file mode 100644 index 0000000..feec1de --- /dev/null +++ b/Properties/Resources.Designer.cs @@ -0,0 +1,83 @@ +//------------------------------------------------------------------------------ +// +// 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 CurrencyConvert.Properties { + using System; + + + /// + /// 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", "17.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 (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CurrencyConvert.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; + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Euro { + get { + object obj = ResourceManager.GetObject("Euro", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap Euro1 { + get { + object obj = ResourceManager.GetObject("Euro1", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/Properties/Resources.resx b/Properties/Resources.resx new file mode 100644 index 0000000..a26584f --- /dev/null +++ b/Properties/Resources.resx @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + ..\Resources\Euro.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Euro1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/Resources/Euro.png b/Resources/Euro.png new file mode 100644 index 0000000..de516c5 Binary files /dev/null and b/Resources/Euro.png differ diff --git a/Resources/Euro1.png b/Resources/Euro1.png new file mode 100644 index 0000000..e23067b Binary files /dev/null and b/Resources/Euro1.png differ diff --git a/bin/Debug/net8.0-windows/CurrencyConvert.deps.json b/bin/Debug/net8.0-windows/CurrencyConvert.deps.json new file mode 100644 index 0000000..a884356 --- /dev/null +++ b/bin/Debug/net8.0-windows/CurrencyConvert.deps.json @@ -0,0 +1,41 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "CurrencyConvert/1.0.0": { + "dependencies": { + "Newtonsoft.Json": "13.0.1" + }, + "runtime": { + "CurrencyConvert.dll": {} + } + }, + "Newtonsoft.Json/13.0.1": { + "runtime": { + "lib/netstandard2.0/Newtonsoft.Json.dll": { + "assemblyVersion": "13.0.0.0", + "fileVersion": "13.0.1.25517" + } + } + } + } + }, + "libraries": { + "CurrencyConvert/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Newtonsoft.Json/13.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", + "path": "newtonsoft.json/13.0.1", + "hashPath": "newtonsoft.json.13.0.1.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/bin/Debug/net8.0-windows/CurrencyConvert.dll b/bin/Debug/net8.0-windows/CurrencyConvert.dll new file mode 100644 index 0000000..4e00261 Binary files /dev/null and b/bin/Debug/net8.0-windows/CurrencyConvert.dll differ diff --git a/bin/Debug/net8.0-windows/CurrencyConvert.exe b/bin/Debug/net8.0-windows/CurrencyConvert.exe new file mode 100644 index 0000000..78e7267 Binary files /dev/null and b/bin/Debug/net8.0-windows/CurrencyConvert.exe differ diff --git a/bin/Debug/net8.0-windows/CurrencyConvert.pdb b/bin/Debug/net8.0-windows/CurrencyConvert.pdb new file mode 100644 index 0000000..525e0de Binary files /dev/null and b/bin/Debug/net8.0-windows/CurrencyConvert.pdb differ diff --git a/bin/Debug/net8.0-windows/CurrencyConvert.runtimeconfig.json b/bin/Debug/net8.0-windows/CurrencyConvert.runtimeconfig.json new file mode 100644 index 0000000..b2dedf3 --- /dev/null +++ b/bin/Debug/net8.0-windows/CurrencyConvert.runtimeconfig.json @@ -0,0 +1,19 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "frameworks": [ + { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + { + "name": "Microsoft.WindowsDesktop.App", + "version": "8.0.0" + } + ], + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true, + "CSWINRT_USE_WINDOWS_UI_XAML_PROJECTIONS": false + } + } +} \ No newline at end of file diff --git a/bin/Debug/net8.0-windows/Newtonsoft.Json.dll b/bin/Debug/net8.0-windows/Newtonsoft.Json.dll new file mode 100644 index 0000000..1ffeabe Binary files /dev/null and b/bin/Debug/net8.0-windows/Newtonsoft.Json.dll differ diff --git a/obj/CurrencyConvert.csproj.nuget.dgspec.json b/obj/CurrencyConvert.csproj.nuget.dgspec.json new file mode 100644 index 0000000..1577096 --- /dev/null +++ b/obj/CurrencyConvert.csproj.nuget.dgspec.json @@ -0,0 +1,81 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\bib\\source\\repos\\CurrencyConvert\\CurrencyConvert.csproj": {} + }, + "projects": { + "C:\\Users\\bib\\source\\repos\\CurrencyConvert\\CurrencyConvert.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\bib\\source\\repos\\CurrencyConvert\\CurrencyConvert.csproj", + "projectName": "CurrencyConvert", + "projectPath": "C:\\Users\\bib\\source\\repos\\CurrencyConvert\\CurrencyConvert.csproj", + "packagesPath": "C:\\Users\\bib\\.nuget\\packages\\", + "outputPath": "C:\\Users\\bib\\source\\repos\\CurrencyConvert\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\bib\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0-windows" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {} + }, + "frameworks": { + "net8.0-windows7.0": { + "targetAlias": "net8.0-windows", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.200" + }, + "frameworks": { + "net8.0-windows7.0": { + "targetAlias": "net8.0-windows", + "dependencies": { + "Newtonsoft.Json": { + "target": "Package", + "version": "[13.0.1, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + }, + "Microsoft.WindowsDesktop.App.WindowsForms": { + "privateAssets": "none" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.203/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/obj/CurrencyConvert.csproj.nuget.g.props b/obj/CurrencyConvert.csproj.nuget.g.props new file mode 100644 index 0000000..db0ad43 --- /dev/null +++ b/obj/CurrencyConvert.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\bib\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.13.2 + + + + + + \ No newline at end of file diff --git a/obj/CurrencyConvert.csproj.nuget.g.targets b/obj/CurrencyConvert.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/obj/CurrencyConvert.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/obj/Debug/net8.0-windows/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/obj/Debug/net8.0-windows/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..2217181 --- /dev/null +++ b/obj/Debug/net8.0-windows/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/obj/Debug/net8.0-windows/Currency.DEA7AA0F.Up2Date b/obj/Debug/net8.0-windows/Currency.DEA7AA0F.Up2Date new file mode 100644 index 0000000..e69de29 diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.AssemblyInfo.cs b/obj/Debug/net8.0-windows/CurrencyConvert.AssemblyInfo.cs new file mode 100644 index 0000000..4f86083 --- /dev/null +++ b/obj/Debug/net8.0-windows/CurrencyConvert.AssemblyInfo.cs @@ -0,0 +1,25 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("CurrencyConvert")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("CurrencyConvert")] +[assembly: System.Reflection.AssemblyTitleAttribute("CurrencyConvert")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] +[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")] +[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.AssemblyInfoInputs.cache b/obj/Debug/net8.0-windows/CurrencyConvert.AssemblyInfoInputs.cache new file mode 100644 index 0000000..67aa13b --- /dev/null +++ b/obj/Debug/net8.0-windows/CurrencyConvert.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +861cff0492995bfdf65c6a8287334b22d4a50ab65208d23816ade7ac77479a9c diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.Form1.resources b/obj/Debug/net8.0-windows/CurrencyConvert.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/obj/Debug/net8.0-windows/CurrencyConvert.Form1.resources differ diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net8.0-windows/CurrencyConvert.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..2a39b4d --- /dev/null +++ b/obj/Debug/net8.0-windows/CurrencyConvert.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,22 @@ +is_global = true +build_property.ApplicationManifest = +build_property.StartupObject = +build_property.ApplicationDefaultFont = +build_property.ApplicationHighDpiMode = +build_property.ApplicationUseCompatibleTextRendering = +build_property.ApplicationVisualStyles = +build_property.TargetFramework = net8.0-windows +build_property.TargetPlatformMinVersion = 7.0 +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = CurrencyConvert +build_property.ProjectDir = C:\Users\bib\source\repos\CurrencyConvert\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.CsWinRTUseWindowsUIXamlProjections = false +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.GlobalUsings.g.cs b/obj/Debug/net8.0-windows/CurrencyConvert.GlobalUsings.g.cs new file mode 100644 index 0000000..84bbb89 --- /dev/null +++ b/obj/Debug/net8.0-windows/CurrencyConvert.GlobalUsings.g.cs @@ -0,0 +1,10 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.Drawing; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; +global using global::System.Windows.Forms; diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.Properties.Resources.resources b/obj/Debug/net8.0-windows/CurrencyConvert.Properties.Resources.resources new file mode 100644 index 0000000..e72efc9 Binary files /dev/null and b/obj/Debug/net8.0-windows/CurrencyConvert.Properties.Resources.resources differ diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.assets.cache b/obj/Debug/net8.0-windows/CurrencyConvert.assets.cache new file mode 100644 index 0000000..09ce6ab Binary files /dev/null and b/obj/Debug/net8.0-windows/CurrencyConvert.assets.cache differ diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.csproj.AssemblyReference.cache b/obj/Debug/net8.0-windows/CurrencyConvert.csproj.AssemblyReference.cache new file mode 100644 index 0000000..f30a7af Binary files /dev/null and b/obj/Debug/net8.0-windows/CurrencyConvert.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.csproj.BuildWithSkipAnalyzers b/obj/Debug/net8.0-windows/CurrencyConvert.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000..e69de29 diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.csproj.CoreCompileInputs.cache b/obj/Debug/net8.0-windows/CurrencyConvert.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..add83be --- /dev/null +++ b/obj/Debug/net8.0-windows/CurrencyConvert.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +4b3f8ed66ef892d49dcd4ec591dd76964fb33b7849e8269c41fd33a533999b3b diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.csproj.FileListAbsolute.txt b/obj/Debug/net8.0-windows/CurrencyConvert.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..f28d97c --- /dev/null +++ b/obj/Debug/net8.0-windows/CurrencyConvert.csproj.FileListAbsolute.txt @@ -0,0 +1,20 @@ +C:\Users\bib\source\repos\CurrencyConvert\bin\Debug\net8.0-windows\CurrencyConvert.exe +C:\Users\bib\source\repos\CurrencyConvert\bin\Debug\net8.0-windows\CurrencyConvert.deps.json +C:\Users\bib\source\repos\CurrencyConvert\bin\Debug\net8.0-windows\CurrencyConvert.runtimeconfig.json +C:\Users\bib\source\repos\CurrencyConvert\bin\Debug\net8.0-windows\CurrencyConvert.dll +C:\Users\bib\source\repos\CurrencyConvert\bin\Debug\net8.0-windows\CurrencyConvert.pdb +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.Form1.resources +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.csproj.GenerateResource.cache +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.AssemblyInfoInputs.cache +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.AssemblyInfo.cs +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.csproj.CoreCompileInputs.cache +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.dll +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\refint\CurrencyConvert.dll +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.pdb +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.genruntimeconfig.cache +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\ref\CurrencyConvert.dll +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.Properties.Resources.resources +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\CurrencyConvert.csproj.AssemblyReference.cache +C:\Users\bib\source\repos\CurrencyConvert\bin\Debug\net8.0-windows\Newtonsoft.Json.dll +C:\Users\bib\source\repos\CurrencyConvert\obj\Debug\net8.0-windows\Currency.DEA7AA0F.Up2Date diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.csproj.GenerateResource.cache b/obj/Debug/net8.0-windows/CurrencyConvert.csproj.GenerateResource.cache new file mode 100644 index 0000000..ed0999e Binary files /dev/null and b/obj/Debug/net8.0-windows/CurrencyConvert.csproj.GenerateResource.cache differ diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.designer.deps.json b/obj/Debug/net8.0-windows/CurrencyConvert.designer.deps.json new file mode 100644 index 0000000..9a836b8 --- /dev/null +++ b/obj/Debug/net8.0-windows/CurrencyConvert.designer.deps.json @@ -0,0 +1,28 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "Newtonsoft.Json/13.0.1": { + "runtime": { + "lib/netstandard2.0/Newtonsoft.Json.dll": { + "assemblyVersion": "13.0.0.0", + "fileVersion": "13.0.1.25517" + } + } + } + } + }, + "libraries": { + "Newtonsoft.Json/13.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", + "path": "newtonsoft.json/13.0.1", + "hashPath": "newtonsoft.json.13.0.1.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.designer.runtimeconfig.json b/obj/Debug/net8.0-windows/CurrencyConvert.designer.runtimeconfig.json new file mode 100644 index 0000000..2da72d5 --- /dev/null +++ b/obj/Debug/net8.0-windows/CurrencyConvert.designer.runtimeconfig.json @@ -0,0 +1,25 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "frameworks": [ + { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + { + "name": "Microsoft.WindowsDesktop.App", + "version": "8.0.0" + } + ], + "additionalProbingPaths": [ + "C:\\Users\\bib\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\bib\\.nuget\\packages", + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true, + "CSWINRT_USE_WINDOWS_UI_XAML_PROJECTIONS": false, + "Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true + } + } +} \ No newline at end of file diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.dll b/obj/Debug/net8.0-windows/CurrencyConvert.dll new file mode 100644 index 0000000..4e00261 Binary files /dev/null and b/obj/Debug/net8.0-windows/CurrencyConvert.dll differ diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.genruntimeconfig.cache b/obj/Debug/net8.0-windows/CurrencyConvert.genruntimeconfig.cache new file mode 100644 index 0000000..ff5ea35 --- /dev/null +++ b/obj/Debug/net8.0-windows/CurrencyConvert.genruntimeconfig.cache @@ -0,0 +1 @@ +0197e5baa45b9e339779100edf6e623b32651743e529766a70a4ddd4eda899f8 diff --git a/obj/Debug/net8.0-windows/CurrencyConvert.pdb b/obj/Debug/net8.0-windows/CurrencyConvert.pdb new file mode 100644 index 0000000..525e0de Binary files /dev/null and b/obj/Debug/net8.0-windows/CurrencyConvert.pdb differ diff --git a/obj/Debug/net8.0-windows/TempPE/Properties.Resources.Designer.cs.dll b/obj/Debug/net8.0-windows/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 0000000..265a825 Binary files /dev/null and b/obj/Debug/net8.0-windows/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/obj/Debug/net8.0-windows/apphost.exe b/obj/Debug/net8.0-windows/apphost.exe new file mode 100644 index 0000000..78e7267 Binary files /dev/null and b/obj/Debug/net8.0-windows/apphost.exe differ diff --git a/obj/Debug/net8.0-windows/ref/CurrencyConvert.dll b/obj/Debug/net8.0-windows/ref/CurrencyConvert.dll new file mode 100644 index 0000000..b8523b2 Binary files /dev/null and b/obj/Debug/net8.0-windows/ref/CurrencyConvert.dll differ diff --git a/obj/Debug/net8.0-windows/refint/CurrencyConvert.dll b/obj/Debug/net8.0-windows/refint/CurrencyConvert.dll new file mode 100644 index 0000000..b8523b2 Binary files /dev/null and b/obj/Debug/net8.0-windows/refint/CurrencyConvert.dll differ diff --git a/obj/project.assets.json b/obj/project.assets.json new file mode 100644 index 0000000..79ffb58 --- /dev/null +++ b/obj/project.assets.json @@ -0,0 +1,131 @@ +{ + "version": 3, + "targets": { + "net8.0-windows7.0": { + "Newtonsoft.Json/13.0.1": { + "type": "package", + "compile": { + "lib/netstandard2.0/Newtonsoft.Json.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/Newtonsoft.Json.dll": { + "related": ".xml" + } + } + } + } + }, + "libraries": { + "Newtonsoft.Json/13.0.1": { + "sha512": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", + "type": "package", + "path": "newtonsoft.json/13.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "LICENSE.md", + "lib/net20/Newtonsoft.Json.dll", + "lib/net20/Newtonsoft.Json.xml", + "lib/net35/Newtonsoft.Json.dll", + "lib/net35/Newtonsoft.Json.xml", + "lib/net40/Newtonsoft.Json.dll", + "lib/net40/Newtonsoft.Json.xml", + "lib/net45/Newtonsoft.Json.dll", + "lib/net45/Newtonsoft.Json.xml", + "lib/netstandard1.0/Newtonsoft.Json.dll", + "lib/netstandard1.0/Newtonsoft.Json.xml", + "lib/netstandard1.3/Newtonsoft.Json.dll", + "lib/netstandard1.3/Newtonsoft.Json.xml", + "lib/netstandard2.0/Newtonsoft.Json.dll", + "lib/netstandard2.0/Newtonsoft.Json.xml", + "newtonsoft.json.13.0.1.nupkg.sha512", + "newtonsoft.json.nuspec", + "packageIcon.png" + ] + } + }, + "projectFileDependencyGroups": { + "net8.0-windows7.0": [ + "Newtonsoft.Json >= 13.0.1" + ] + }, + "packageFolders": { + "C:\\Users\\bib\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\bib\\source\\repos\\CurrencyConvert\\CurrencyConvert.csproj", + "projectName": "CurrencyConvert", + "projectPath": "C:\\Users\\bib\\source\\repos\\CurrencyConvert\\CurrencyConvert.csproj", + "packagesPath": "C:\\Users\\bib\\.nuget\\packages\\", + "outputPath": "C:\\Users\\bib\\source\\repos\\CurrencyConvert\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\bib\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0-windows" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {} + }, + "frameworks": { + "net8.0-windows7.0": { + "targetAlias": "net8.0-windows", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.200" + }, + "frameworks": { + "net8.0-windows7.0": { + "targetAlias": "net8.0-windows", + "dependencies": { + "Newtonsoft.Json": { + "target": "Package", + "version": "[13.0.1, )" + } + }, + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + }, + "Microsoft.WindowsDesktop.App.WindowsForms": { + "privateAssets": "none" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.203/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache new file mode 100644 index 0000000..1cbf75e --- /dev/null +++ b/obj/project.nuget.cache @@ -0,0 +1,10 @@ +{ + "version": 2, + "dgSpecHash": "g2bpG5dhHu4=", + "success": true, + "projectFilePath": "C:\\Users\\bib\\source\\repos\\CurrencyConvert\\CurrencyConvert.csproj", + "expectedPackageFiles": [ + "C:\\Users\\bib\\.nuget\\packages\\newtonsoft.json\\13.0.1\\newtonsoft.json.13.0.1.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file