diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates.sln b/TCMB.ExchangeRates/TCMB.ExchangeRates.sln new file mode 100644 index 0000000..b80cb76 --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26430.15 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TCMB.ExchangeRates", "TCMB.ExchangeRates\TCMB.ExchangeRates.csproj", "{C84B0E93-D3FF-4A02-80B3-B9AEB5A998B1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C84B0E93-D3FF-4A02-80B3-B9AEB5A998B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C84B0E93-D3FF-4A02-80B3-B9AEB5A998B1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C84B0E93-D3FF-4A02-80B3-B9AEB5A998B1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C84B0E93-D3FF-4A02-80B3-B9AEB5A998B1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/App.config b/TCMB.ExchangeRates/TCMB.ExchangeRates/App.config new file mode 100644 index 0000000..8324aa6 --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/ExchangeRate.cs b/TCMB.ExchangeRates/TCMB.ExchangeRates/ExchangeRate.cs new file mode 100644 index 0000000..208dcbf --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/ExchangeRate.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TCMB.ExchangeRates +{ + public class ExchangeRate + { + public string CurrencyCode { get; set; } + public string Currency { get; set; } + public string Unit { get; set; } + public string ForexBuying { get; set; } + public string ForexSelling { get; set; } + public string BanknoteBuying { get; set; } + public string BanknoteSelling { get; set; } + } +} diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/Form1.Designer.cs b/TCMB.ExchangeRates/TCMB.ExchangeRates/Form1.Designer.cs new file mode 100644 index 0000000..67a0c61 --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/Form1.Designer.cs @@ -0,0 +1,106 @@ +namespace TCMB.ExchangeRates +{ + partial class Form1 + { + /// + /// 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.lblDate = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.cmbBoxLanguages = new System.Windows.Forms.ComboBox(); + this.lstViewCurrency = new System.Windows.Forms.ListView(); + this.SuspendLayout(); + // + // lblDate + // + this.lblDate.AutoSize = true; + this.lblDate.Location = new System.Drawing.Point(12, 17); + this.lblDate.Name = "lblDate"; + this.lblDate.Size = new System.Drawing.Size(53, 13); + this.lblDate.TabIndex = 5; + this.lblDate.Text = "Date Title"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(489, 17); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(66, 13); + this.label1.TabIndex = 4; + this.label1.Text = "Languages :"; + // + // cmbBoxLanguages + // + this.cmbBoxLanguages.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbBoxLanguages.FormattingEnabled = true; + this.cmbBoxLanguages.Location = new System.Drawing.Point(561, 12); + this.cmbBoxLanguages.Name = "cmbBoxLanguages"; + this.cmbBoxLanguages.Size = new System.Drawing.Size(107, 21); + this.cmbBoxLanguages.TabIndex = 3; + this.cmbBoxLanguages.SelectedIndexChanged += new System.EventHandler(this.cmbBoxLanguages_SelectedIndexChanged); + // + // lstViewCurrency + // + this.lstViewCurrency.FullRowSelect = true; + this.lstViewCurrency.GridLines = true; + this.lstViewCurrency.Location = new System.Drawing.Point(8, 39); + this.lstViewCurrency.MultiSelect = false; + this.lstViewCurrency.Name = "lstViewCurrency"; + this.lstViewCurrency.Scrollable = false; + this.lstViewCurrency.Size = new System.Drawing.Size(660, 372); + this.lstViewCurrency.TabIndex = 6; + this.lstViewCurrency.UseCompatibleStateImageBehavior = false; + this.lstViewCurrency.View = System.Windows.Forms.View.Details; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(680, 423); + this.Controls.Add(this.lstViewCurrency); + this.Controls.Add(this.lblDate); + this.Controls.Add(this.label1); + this.Controls.Add(this.cmbBoxLanguages); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.Name = "Form1"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Form1"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label lblDate; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.ComboBox cmbBoxLanguages; + private System.Windows.Forms.ListView lstViewCurrency; + } +} + diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/Form1.cs b/TCMB.ExchangeRates/TCMB.ExchangeRates/Form1.cs new file mode 100644 index 0000000..b675460 --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/Form1.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Net; +using System.Resources; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.Xml; + +namespace TCMB.ExchangeRates +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + public enum Languages + { + English, + Türkçe + } + + ResourceManager langRM = new ResourceManager("TCMB.ExchangeRates.Languages.tr-TR", typeof(Form1).Assembly); + + private string today = ""; + + private void Form1_Load(object sender, EventArgs e) + { + try + { + XmlDocument doc = new XmlDocument(); + WebClient web = new WebClient(); + + MemoryStream ms = new MemoryStream(web.DownloadData("http://www.tcmb.gov.tr/kurlar/today.xml")); + doc.Load(ms); + + XmlNodeList nodes = doc.SelectNodes("//Currency"); + + today = doc.SelectSingleNode("//Tarih_Date").Attributes["Tarih"].Value.Trim(); + + cmbBoxLanguages.DataSource = Enum.GetValues(typeof(Languages)); + cmbBoxLanguages.SelectedIndex = 1; + + GetLstViewItems(nodes); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + private void cmbBoxLanguages_SelectedIndexChanged(object sender, EventArgs e) + { + GetSelectedLanguage(cmbBoxLanguages.SelectedIndex); + + LoadLstViewColumns(); + } + + public void GetSelectedLanguage(int selectedLanguage) + { + if (selectedLanguage == (int)Languages.English) + { + langRM = new ResourceManager("TCMB.ExchangeRates.Languages.en-US", typeof(Form1).Assembly); + } + else if (selectedLanguage == (int)Languages.Türkçe) + { + langRM = new ResourceManager("TCMB.ExchangeRates.Languages.tr-TR", typeof(Form1).Assembly); + } + else + { + langRM = new ResourceManager("TCMB.ExchangeRates.Languages.tr-TR", typeof(Form1).Assembly); + } + + this.Text = langRM.GetString("formTitle"); + } + + public void LoadLstViewColumns() + { + lblDate.Text = string.Format("{0} : {1}", langRM.GetString("lblDate"), today); + + lstViewCurrency.Columns.Clear(); + + lstViewCurrency.Columns.Add(langRM.GetString("currencyCode")); + lstViewCurrency.Columns.Add(langRM.GetString("unit")); + lstViewCurrency.Columns.Add(langRM.GetString("currency")); + lstViewCurrency.Columns.Add(langRM.GetString("forexBuying")); + lstViewCurrency.Columns.Add(langRM.GetString("forexSelling")); + lstViewCurrency.Columns.Add(langRM.GetString("banknoteBuying")); + lstViewCurrency.Columns.Add(langRM.GetString("banknoteSelling")); + + lstViewCurrency.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent); + lstViewCurrency.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize); + } + + public void GetLstViewItems(XmlNodeList nodes) + { + foreach (XmlNode node in nodes) + { + ExchangeRate kur = new ExchangeRate() + { + CurrencyCode = node.Attributes["CurrencyCode"].Value.Trim(), + Unit = node["Unit"].InnerText.Trim(), + Currency = node["Isim"].InnerText.Trim(), + ForexBuying = node["ForexBuying"].InnerText.Trim(), + ForexSelling = node["ForexSelling"].InnerText.Trim(), + BanknoteBuying = node["BanknoteBuying"].InnerText.Trim(), + BanknoteSelling = node["BanknoteSelling"].InnerText.Trim() + }; + + ListViewItem li = new ListViewItem(kur.CurrencyCode); + li.SubItems.Add(kur.Unit); + li.SubItems.Add(kur.Currency); + li.SubItems.Add(kur.ForexBuying); + li.SubItems.Add(kur.ForexSelling); + li.SubItems.Add(kur.BanknoteBuying); + li.SubItems.Add(kur.BanknoteSelling); + li.Tag = kur; + lstViewCurrency.Items.Add(li); + } + } + } +} diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/Form1.resx b/TCMB.ExchangeRates/TCMB.ExchangeRates/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/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/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/en-US.Designer.cs b/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/en-US.Designer.cs new file mode 100644 index 0000000..d297943 --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/en-US.Designer.cs @@ -0,0 +1,162 @@ +//------------------------------------------------------------------------------ +// +// 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 ExchangeRates.Languages { + 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", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class en_US { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal en_US() { + } + + /// + /// 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("ExchangeRates.Languages.en-US", typeof(en_US).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 string similar to Banknote Buying. + /// + internal static string banknoteBuying { + get { + return ResourceManager.GetString("banknoteBuying", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Banknote Selling. + /// + internal static string banknoteSelling { + get { + return ResourceManager.GetString("banknoteSelling", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cross Rate. + /// + internal static string crossRate { + get { + return ResourceManager.GetString("crossRate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cross Rates. + /// + internal static string crossRates { + get { + return ResourceManager.GetString("crossRates", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Currency. + /// + internal static string currency { + get { + return ResourceManager.GetString("currency", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Currency Code. + /// + internal static string currencyCode { + get { + return ResourceManager.GetString("currencyCode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Forex Buying. + /// + internal static string forexBuying { + get { + return ResourceManager.GetString("forexBuying", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Forex Selling. + /// + internal static string forexSelling { + get { + return ResourceManager.GetString("forexSelling", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to For Information. + /// + internal static string forInformation { + get { + return ResourceManager.GetString("forInformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to TCMB Rates. + /// + internal static string formTitle { + get { + return ResourceManager.GetString("formTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unit. + /// + internal static string unit { + get { + return ResourceManager.GetString("unit", resourceCulture); + } + } + } +} diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/en-US.resx b/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/en-US.resx new file mode 100644 index 0000000..3baf23e --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/en-US.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Banknote Buying + + + Banknote Selling + + + Cross Rate + + + Cross Rates + + + Currency + + + Currency Code + + + Forex Buying + + + Forex Selling + + + For Information + + + Central Bank of Turkey Exchange Rates + + + Unit + + + Date + + \ No newline at end of file diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/tr-TR.Designer.cs b/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/tr-TR.Designer.cs new file mode 100644 index 0000000..15fc11a --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/tr-TR.Designer.cs @@ -0,0 +1,162 @@ +//------------------------------------------------------------------------------ +// +// 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 ExchangeRates.Languages { + 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", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class tr_TR { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal tr_TR() { + } + + /// + /// 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("ExchangeRates.Languages.tr-TR", typeof(tr_TR).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 string similar to Efektif Alış. + /// + internal static string banknoteBuying { + get { + return ResourceManager.GetString("banknoteBuying", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Efektif Satış. + /// + internal static string banknoteSelling { + get { + return ResourceManager.GetString("banknoteSelling", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Çapraz Kur. + /// + internal static string crossRate { + get { + return ResourceManager.GetString("crossRate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Çapraz Kurlar. + /// + internal static string crossRates { + get { + return ResourceManager.GetString("crossRates", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Döviz Cinsi. + /// + internal static string currency { + get { + return ResourceManager.GetString("currency", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Döviz Kodu. + /// + internal static string currencyCode { + get { + return ResourceManager.GetString("currencyCode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Döviz Alış. + /// + internal static string forexBuying { + get { + return ResourceManager.GetString("forexBuying", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Döviz Satış. + /// + internal static string forexSelling { + get { + return ResourceManager.GetString("forexSelling", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Bilgi İçin. + /// + internal static string forInformation { + get { + return ResourceManager.GetString("forInformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to TCMB Kurlar. + /// + internal static string formTitle { + get { + return ResourceManager.GetString("formTitle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Birim. + /// + internal static string unit { + get { + return ResourceManager.GetString("unit", resourceCulture); + } + } + } +} diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/tr-TR.resx b/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/tr-TR.resx new file mode 100644 index 0000000..c7e7dca --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/Languages/tr-TR.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + Efektif Alış + + + Efektif Satış + + + Çapraz Kur + + + Çapraz Kurlar + + + Döviz Cinsi + + + Döviz Kodu + + + Döviz Alış + + + Döviz Satış + + + Bilgi İçin + + + Türkiye Cumhuriyet Merkez Bankası Döviz Kurları + + + Birim + + + Tarih + + \ No newline at end of file diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/Program.cs b/TCMB.ExchangeRates/TCMB.ExchangeRates/Program.cs new file mode 100644 index 0000000..36fbd14 --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace TCMB.ExchangeRates +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/AssemblyInfo.cs b/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..64c70aa --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/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("TCMB.ExchangeRates")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("TCMB.ExchangeRates")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[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("c84b0e93-d3ff-4a02-80b3-b9aeb5a998b1")] + +// 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/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/Resources.Designer.cs b/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/Resources.Designer.cs new file mode 100644 index 0000000..a413dbf --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/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 TCMB.ExchangeRates.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("TCMB.ExchangeRates.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/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/Resources.resx b/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/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/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/Settings.Designer.cs b/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/Settings.Designer.cs new file mode 100644 index 0000000..6a751d5 --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/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 TCMB.ExchangeRates.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/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/Settings.settings b/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/TCMB.ExchangeRates/TCMB.ExchangeRates/TCMB.ExchangeRates.csproj b/TCMB.ExchangeRates/TCMB.ExchangeRates/TCMB.ExchangeRates.csproj new file mode 100644 index 0000000..44d7e8b --- /dev/null +++ b/TCMB.ExchangeRates/TCMB.ExchangeRates/TCMB.ExchangeRates.csproj @@ -0,0 +1,87 @@ + + + + + Debug + AnyCPU + {C84B0E93-D3FF-4A02-80B3-B9AEB5A998B1} + WinExe + TCMB.ExchangeRates + TCMB.ExchangeRates + v4.6 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + + + Form1.cs + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file