Projektdateien hinzufügen.

This commit is contained in:
Manuel Kamper 2022-08-27 20:48:04 +02:00
parent 6aa8d7d5c9
commit 81f41adcd0
13 changed files with 3786 additions and 0 deletions

View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.32802.440
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mk0.Software.Widerstandsfarbcode", "Mk0.Software.Widerstandsfarbcode\Mk0.Software.Widerstandsfarbcode.csproj", "{5E3794F8-CB3C-4A34-B87D-6B732DC9572F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5E3794F8-CB3C-4A34-B87D-6B732DC9572F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5E3794F8-CB3C-4A34-B87D-6B732DC9572F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5E3794F8-CB3C-4A34-B87D-6B732DC9572F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5E3794F8-CB3C-4A34-B87D-6B732DC9572F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {47163ACA-BF6C-45E4-8F40-94123FBEB688}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
</startup>
</configuration>

View File

@ -0,0 +1,280 @@

namespace Mk0.Software.Widerstandsfarbcode
{
partial class Form1
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Vom Windows Form-Designer generierter Code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.label1 = new System.Windows.Forms.Label();
this.comboBoxAnzahl = new System.Windows.Forms.ComboBox();
this.groupBoxRing1 = new System.Windows.Forms.GroupBox();
this.comboBoxColor1 = new System.Windows.Forms.ComboBox();
this.groupBoxRing2 = new System.Windows.Forms.GroupBox();
this.comboBoxColor2 = new System.Windows.Forms.ComboBox();
this.groupBoxRing3 = new System.Windows.Forms.GroupBox();
this.comboBoxColor3 = new System.Windows.Forms.ComboBox();
this.groupBoxRing4 = new System.Windows.Forms.GroupBox();
this.comboBoxColor4 = new System.Windows.Forms.ComboBox();
this.groupBoxRing5 = new System.Windows.Forms.GroupBox();
this.comboBoxColor5 = new System.Windows.Forms.ComboBox();
this.groupBoxRing6 = new System.Windows.Forms.GroupBox();
this.comboBoxColor6 = new System.Windows.Forms.ComboBox();
this.labelResistor = new System.Windows.Forms.Label();
this.groupBoxRing1.SuspendLayout();
this.groupBoxRing2.SuspendLayout();
this.groupBoxRing3.SuspendLayout();
this.groupBoxRing4.SuspendLayout();
this.groupBoxRing5.SuspendLayout();
this.groupBoxRing6.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(88, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Anzahl der Ringe";
//
// comboBoxAnzahl
//
this.comboBoxAnzahl.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxAnzahl.FormattingEnabled = true;
this.comboBoxAnzahl.Items.AddRange(new object[] {
"3",
"4",
"5",
"6"});
this.comboBoxAnzahl.Location = new System.Drawing.Point(106, 6);
this.comboBoxAnzahl.Name = "comboBoxAnzahl";
this.comboBoxAnzahl.Size = new System.Drawing.Size(53, 21);
this.comboBoxAnzahl.TabIndex = 1;
this.comboBoxAnzahl.SelectedIndexChanged += new System.EventHandler(this.ComboBoxAnzahl_SelectedIndexChanged);
//
// groupBoxRing1
//
this.groupBoxRing1.Controls.Add(this.comboBoxColor1);
this.groupBoxRing1.Location = new System.Drawing.Point(12, 33);
this.groupBoxRing1.Name = "groupBoxRing1";
this.groupBoxRing1.Size = new System.Drawing.Size(88, 52);
this.groupBoxRing1.TabIndex = 8;
this.groupBoxRing1.TabStop = false;
this.groupBoxRing1.Text = "Ring 1";
//
// comboBoxColor1
//
this.comboBoxColor1.DisplayMember = "Value";
this.comboBoxColor1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxColor1.FormattingEnabled = true;
this.comboBoxColor1.Location = new System.Drawing.Point(11, 16);
this.comboBoxColor1.Name = "comboBoxColor1";
this.comboBoxColor1.Size = new System.Drawing.Size(67, 21);
this.comboBoxColor1.TabIndex = 14;
this.comboBoxColor1.Tag = "r1";
this.comboBoxColor1.ValueMember = "Key";
this.comboBoxColor1.SelectedIndexChanged += new System.EventHandler(this.ComboBoxColor_SelectedIndexChanged);
//
// groupBoxRing2
//
this.groupBoxRing2.Controls.Add(this.comboBoxColor2);
this.groupBoxRing2.Location = new System.Drawing.Point(106, 33);
this.groupBoxRing2.Name = "groupBoxRing2";
this.groupBoxRing2.Size = new System.Drawing.Size(88, 52);
this.groupBoxRing2.TabIndex = 9;
this.groupBoxRing2.TabStop = false;
this.groupBoxRing2.Text = "Ring 2";
//
// comboBoxColor2
//
this.comboBoxColor2.DisplayMember = "Value";
this.comboBoxColor2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxColor2.FormattingEnabled = true;
this.comboBoxColor2.Location = new System.Drawing.Point(11, 16);
this.comboBoxColor2.Name = "comboBoxColor2";
this.comboBoxColor2.Size = new System.Drawing.Size(67, 21);
this.comboBoxColor2.TabIndex = 15;
this.comboBoxColor2.Tag = "r2";
this.comboBoxColor2.ValueMember = "Key";
this.comboBoxColor2.SelectedIndexChanged += new System.EventHandler(this.ComboBoxColor_SelectedIndexChanged);
//
// groupBoxRing3
//
this.groupBoxRing3.Controls.Add(this.comboBoxColor3);
this.groupBoxRing3.Location = new System.Drawing.Point(200, 33);
this.groupBoxRing3.Name = "groupBoxRing3";
this.groupBoxRing3.Size = new System.Drawing.Size(88, 52);
this.groupBoxRing3.TabIndex = 10;
this.groupBoxRing3.TabStop = false;
this.groupBoxRing3.Text = "Ring 3";
//
// comboBoxColor3
//
this.comboBoxColor3.DisplayMember = "Value";
this.comboBoxColor3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxColor3.FormattingEnabled = true;
this.comboBoxColor3.Location = new System.Drawing.Point(11, 16);
this.comboBoxColor3.Name = "comboBoxColor3";
this.comboBoxColor3.Size = new System.Drawing.Size(67, 21);
this.comboBoxColor3.TabIndex = 15;
this.comboBoxColor3.Tag = "r3";
this.comboBoxColor3.ValueMember = "Key";
this.comboBoxColor3.SelectedIndexChanged += new System.EventHandler(this.ComboBoxColor_SelectedIndexChanged);
//
// groupBoxRing4
//
this.groupBoxRing4.Controls.Add(this.comboBoxColor4);
this.groupBoxRing4.Enabled = false;
this.groupBoxRing4.Location = new System.Drawing.Point(12, 91);
this.groupBoxRing4.Name = "groupBoxRing4";
this.groupBoxRing4.Size = new System.Drawing.Size(88, 52);
this.groupBoxRing4.TabIndex = 11;
this.groupBoxRing4.TabStop = false;
this.groupBoxRing4.Text = "Ring 4";
//
// comboBoxColor4
//
this.comboBoxColor4.DisplayMember = "Value";
this.comboBoxColor4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxColor4.FormattingEnabled = true;
this.comboBoxColor4.Location = new System.Drawing.Point(11, 16);
this.comboBoxColor4.Name = "comboBoxColor4";
this.comboBoxColor4.Size = new System.Drawing.Size(67, 21);
this.comboBoxColor4.TabIndex = 15;
this.comboBoxColor4.Tag = "r4";
this.comboBoxColor4.ValueMember = "Key";
this.comboBoxColor4.SelectedIndexChanged += new System.EventHandler(this.ComboBoxColor_SelectedIndexChanged);
//
// groupBoxRing5
//
this.groupBoxRing5.Controls.Add(this.comboBoxColor5);
this.groupBoxRing5.Enabled = false;
this.groupBoxRing5.Location = new System.Drawing.Point(106, 91);
this.groupBoxRing5.Name = "groupBoxRing5";
this.groupBoxRing5.Size = new System.Drawing.Size(88, 52);
this.groupBoxRing5.TabIndex = 12;
this.groupBoxRing5.TabStop = false;
this.groupBoxRing5.Text = "Ring 5";
//
// comboBoxColor5
//
this.comboBoxColor5.DisplayMember = "Value";
this.comboBoxColor5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxColor5.FormattingEnabled = true;
this.comboBoxColor5.Location = new System.Drawing.Point(11, 16);
this.comboBoxColor5.Name = "comboBoxColor5";
this.comboBoxColor5.Size = new System.Drawing.Size(67, 21);
this.comboBoxColor5.TabIndex = 15;
this.comboBoxColor5.Tag = "r5";
this.comboBoxColor5.ValueMember = "Key";
this.comboBoxColor5.SelectedIndexChanged += new System.EventHandler(this.ComboBoxColor_SelectedIndexChanged);
//
// groupBoxRing6
//
this.groupBoxRing6.Controls.Add(this.comboBoxColor6);
this.groupBoxRing6.Enabled = false;
this.groupBoxRing6.Location = new System.Drawing.Point(200, 91);
this.groupBoxRing6.Name = "groupBoxRing6";
this.groupBoxRing6.Size = new System.Drawing.Size(88, 52);
this.groupBoxRing6.TabIndex = 13;
this.groupBoxRing6.TabStop = false;
this.groupBoxRing6.Text = "Ring 6";
//
// comboBoxColor6
//
this.comboBoxColor6.DisplayMember = "Value";
this.comboBoxColor6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxColor6.FormattingEnabled = true;
this.comboBoxColor6.Location = new System.Drawing.Point(11, 16);
this.comboBoxColor6.Name = "comboBoxColor6";
this.comboBoxColor6.Size = new System.Drawing.Size(67, 21);
this.comboBoxColor6.TabIndex = 15;
this.comboBoxColor6.Tag = "r6";
this.comboBoxColor6.ValueMember = "Key";
this.comboBoxColor6.SelectedIndexChanged += new System.EventHandler(this.ComboBoxColor_SelectedIndexChanged);
//
// labelResistor
//
this.labelResistor.AutoSize = true;
this.labelResistor.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelResistor.Location = new System.Drawing.Point(10, 146);
this.labelResistor.Name = "labelResistor";
this.labelResistor.Size = new System.Drawing.Size(76, 25);
this.labelResistor.TabIndex = 14;
this.labelResistor.Text = "label2";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(302, 178);
this.Controls.Add(this.labelResistor);
this.Controls.Add(this.groupBoxRing6);
this.Controls.Add(this.groupBoxRing5);
this.Controls.Add(this.groupBoxRing4);
this.Controls.Add(this.groupBoxRing3);
this.Controls.Add(this.groupBoxRing2);
this.Controls.Add(this.groupBoxRing1);
this.Controls.Add(this.comboBoxAnzahl);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Widerstandsfarbcode";
this.groupBoxRing1.ResumeLayout(false);
this.groupBoxRing2.ResumeLayout(false);
this.groupBoxRing3.ResumeLayout(false);
this.groupBoxRing4.ResumeLayout(false);
this.groupBoxRing5.ResumeLayout(false);
this.groupBoxRing6.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox comboBoxAnzahl;
private System.Windows.Forms.GroupBox groupBoxRing1;
private System.Windows.Forms.GroupBox groupBoxRing2;
private System.Windows.Forms.GroupBox groupBoxRing3;
private System.Windows.Forms.GroupBox groupBoxRing4;
private System.Windows.Forms.GroupBox groupBoxRing5;
private System.Windows.Forms.GroupBox groupBoxRing6;
private System.Windows.Forms.ComboBox comboBoxColor1;
private System.Windows.Forms.ComboBox comboBoxColor2;
private System.Windows.Forms.ComboBox comboBoxColor3;
private System.Windows.Forms.ComboBox comboBoxColor4;
private System.Windows.Forms.ComboBox comboBoxColor5;
private System.Windows.Forms.ComboBox comboBoxColor6;
private System.Windows.Forms.Label labelResistor;
}
}

View File

@ -0,0 +1,233 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace Mk0.Software.Widerstandsfarbcode
{
public partial class Form1 : Form
{
private Dictionary<string, string> farbCodes = new Dictionary<string, string>();
private static string[] sizes = { " Ω", " kΩ", " MΩ" };
public Form1()
{
InitializeComponent();
comboBoxAnzahl.SelectedIndex = 1;
PopulateColorComboBoxes();
}
private void PopulateColorComboBoxes()
{
farbCodes.Add("Black", "Schwarz");
farbCodes.Add("Brown", "Braun");
farbCodes.Add("Crimson", "Rot");
farbCodes.Add("OrangeRed", "Orange");
farbCodes.Add("Yellow", "Gelb");
farbCodes.Add("Green", "Grün");
farbCodes.Add("Blue", "Blau");
farbCodes.Add("Purple", "Lila");
farbCodes.Add("Gray", "Grau");
farbCodes.Add("WhiteSmoke", "Weiß");
farbCodes.Add("Goldenrod", "Gold");
farbCodes.Add("Silver", "Silber");
comboBoxColor1.DataSource = new BindingSource(farbCodes, null);
comboBoxColor1.SelectedIndex = 0;
comboBoxColor2.DataSource = new BindingSource(farbCodes, null);
comboBoxColor2.SelectedIndex = 0;
comboBoxColor3.DataSource = new BindingSource(farbCodes, null);
comboBoxColor3.SelectedIndex = 0;
comboBoxColor4.DataSource = new BindingSource(farbCodes, null);
comboBoxColor4.SelectedIndex = 0;
comboBoxColor5.DataSource = new BindingSource(farbCodes, null);
comboBoxColor5.SelectedIndex = 0;
comboBoxColor6.DataSource = new BindingSource(farbCodes, null);
comboBoxColor6.SelectedIndex = 0;
}
private void ComboBoxAnzahl_SelectedIndexChanged(object sender, EventArgs e)
{
switch (comboBoxAnzahl.SelectedIndex)
{
case 0:
groupBoxRing4.Enabled = false;
groupBoxRing5.Enabled = false;
groupBoxRing6.Enabled = false;
break;
case 1:
groupBoxRing4.Enabled = true;
groupBoxRing5.Enabled = false;
groupBoxRing6.Enabled = false;
break;
case 2:
groupBoxRing4.Enabled = true;
groupBoxRing5.Enabled = true;
groupBoxRing6.Enabled = false;
break;
case 3:
groupBoxRing4.Enabled = true;
groupBoxRing5.Enabled = true;
groupBoxRing6.Enabled = true;
break;
default:
break;
}
CalculateResistor();
}
private void ComboBoxColor_SelectedIndexChanged(object sender, EventArgs e)
{
ComboBox cb = sender as ComboBox;
Color co = Color.FromName(cb.SelectedValue.ToString());
cb.Parent.BackColor = co;
if (co == Color.Black || co == Color.Blue)
{
cb.Parent.ForeColor = Color.White;
}
else
{
cb.Parent.ForeColor = Color.Black;
}
CalculateResistor();
}
private void CalculateResistor()
{
switch (comboBoxAnzahl.SelectedIndex)
{
case 0: //3 ringe (1+2 wert, 3 multiplikator, toleranz fix 20%)
CalculateResistorValue(comboBoxColor1.SelectedIndex, comboBoxColor2.SelectedIndex, 999, comboBoxColor3.SelectedIndex, 20, 999);
break;
case 1: //4 ringe (1+2 wert, 3 multiplikator, 4 toleranz)
CalculateResistorValue(comboBoxColor1.SelectedIndex, comboBoxColor2.SelectedIndex, 999, comboBoxColor3.SelectedIndex, comboBoxColor4.SelectedIndex, 999);
break;
case 2: //5 ringe (1+2+3 wert, 4 multiplikator, 5 toleranz)
CalculateResistorValue(comboBoxColor1.SelectedIndex, comboBoxColor2.SelectedIndex, comboBoxColor3.SelectedIndex, comboBoxColor4.SelectedIndex, comboBoxColor5.SelectedIndex, 999);
break;
case 3: //6 ringe (1+2+3 wert, 4 multiplikator, 5 toleranz, 6 temperatur-koeffizient)
CalculateResistorValue(comboBoxColor1.SelectedIndex, comboBoxColor2.SelectedIndex, comboBoxColor3.SelectedIndex, comboBoxColor4.SelectedIndex, comboBoxColor5.SelectedIndex, comboBoxColor6.SelectedIndex);
break;
default:
break;
}
}
private void CalculateResistorValue(int wert1, int wert2, int wert3, int multiplikator, int toleranz, int tempkoeff)
{
if (wert3 == 999) //3 oder 4 ringe
{
if (wert1 == 10 || wert1 == 11) { wert1 = 0; } //keine berechnung für silber oder gold im ersten ring
if (wert2 == 10 || wert2 == 11) { wert2 = 0; } //keine berechnung für silber oder gold im zweiten ring
labelResistor.Text = Readable(Multiplikator(((wert1 * 10) + wert2), multiplikator), toleranz, tempkoeff);
}
else //5 oder 6 ringe
{
if (wert1 == 10 || wert1 == 11) { wert1 = 0; } //keine berechnung für silber oder gold im ersten ring
if (wert2 == 10 || wert2 == 11) { wert2 = 0; } //keine berechnung für silber oder gold im zweiten ring
if (wert3 == 10 || wert3 == 11) { wert3 = 0; } //keine berechnung für silber oder gold im dritten ring
labelResistor.Text = Readable(Multiplikator((((wert1 * 100) + (wert2 * 10)) + wert3), multiplikator), toleranz, tempkoeff);
}
}
private string Readable(decimal wert, int toleranz, int tempkoeff)
{
if (wert == 0) { return "gültigen Code wählen"; }
int counter = 0;
while (Math.Round(wert/1000) >=1)
{
wert /= 1000;
counter++;
}
string val = string.Format("{0:n2}{1}", wert, sizes[1]);
//toleranz
switch (toleranz)
{
case 1:
return val + " ± 1 %" + TempKoeff(tempkoeff);
case 2:
return val + " ± 2 %" + TempKoeff(tempkoeff);
case 5:
return val + " ± 0,5 %" + TempKoeff(tempkoeff);
case 6:
return val + " ± 0,25 %" + TempKoeff(tempkoeff);
case 7:
return val + " ± 0,1 %" + TempKoeff(tempkoeff);
case 8:
return val + " ± 0,05 %" + TempKoeff(tempkoeff);
case 10:
return val + " ± 5 %" + TempKoeff(tempkoeff);
case 11:
return val + " ± 10 %" + TempKoeff(tempkoeff);
case 20:
return val + " ± 20 %" + TempKoeff(tempkoeff);
default:
return "gültigen Code wählen";
}
}
private string TempKoeff(int tempkoeff)
{
switch (tempkoeff)
{
case 0:
return ", 200 ppm";
case 1:
return ", 100 ppm";
case 2:
return ", 50 ppm";
case 3:
return ", 15 ppm";
case 4:
return ", 25 ppm";
case 6:
return ", 10 ppm";
case 7:
return ", 5 ppm";
case 8:
return ", 1 ppm";
default:
return "";
}
}
private decimal Multiplikator(decimal wert, int multiplikator)
{
switch (multiplikator)
{
case 0:
return wert * 1;
case 1:
return wert * 10;
case 2:
return wert * 100;
case 3:
return wert * 1000;
case 4:
return wert * 10000;
case 5:
return wert * 100000;
case 6:
return wert * 1000000;
case 7:
return wert * 10000000;
case 8:
return wert * 0; //keine berechnung für grau
case 9:
return wert * 0; //keine berechnung für weiß
case 10:
return wert * 0.1m;
case 11:
return wert * 0.01m;
default:
return wert * 0; //keine berechnung
}
}
}
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

View File

@ -0,0 +1,89 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5E3794F8-CB3C-4A34-B87D-6B732DC9572F}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Mk0.Software.Widerstandsfarbcode</RootNamespace>
<AssemblyName>Mk0.Software.Widerstandsfarbcode</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Icons8-Windows-8-Industry-Resistor.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Icons8-Windows-8-Industry-Resistor.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mk0.Software.Widerstandsfarbcode
{
static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("Widerstandsfarbcode")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("kmpr.at")]
[assembly: AssemblyProduct("Mk0.Software.Widerstandsfarbcode")]
[assembly: AssemblyCopyright("Copyright © 2022 kmpr.at")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("5e3794f8-cb3c-4a34-b87d-6b732dc9572f")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion: 4.0.30319.42000
//
// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
// der Code neu generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Mk0.Software.Widerstandsfarbcode.Properties
{
/// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse
// über ein Tool wie ResGen oder Visual Studio automatisch generiert.
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
// mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu.
[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()
{
}
/// <summary>
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Mk0.Software.Widerstandsfarbcode.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,29 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Mk0.Software.Widerstandsfarbcode.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;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>