Add new icon to forms of application

This commit is contained in:
Marek Frniak 2026-03-04 08:37:27 +01:00
parent b43657a4db
commit 4a2d4772d7
143 changed files with 537 additions and 135 deletions

View File

@ -76,6 +76,7 @@
<Compile Include="Properties\Resources.Designer.cs"> <Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile> </Compile>
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
@ -97,5 +98,8 @@
<Name>SharedComponents</Name> <Name>SharedComponents</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="Resources\TBF_icon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

@ -29,6 +29,8 @@ namespace AppDiagnostic
public MainForm() public MainForm()
{ {
this.Icon = Properties.Resources.TBF_icon;
InitializeComponent(); InitializeComponent();
// Inicializujeme LogAdapter a priradíme ho k memoListView // Inicializujeme LogAdapter a priradíme ho k memoListView

View File

@ -8,10 +8,10 @@
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace AppDiagnostic.Properties namespace AppDiagnostic.Properties {
{ using System;
/// <summary> /// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc. /// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary> /// </summary>
@ -19,53 +19,55 @@ namespace AppDiagnostic.Properties
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources internal class Resources {
{
private static global::System.Resources.ResourceManager resourceMan; private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() internal Resources() {
{
} }
/// <summary> /// <summary>
/// Returns the cached ResourceManager instance used by this class. /// Returns the cached ResourceManager instance used by this class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager internal static global::System.Resources.ResourceManager ResourceManager {
{ get {
get if (object.ReferenceEquals(resourceMan, null)) {
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AppDiagnostic.Properties.Resources", typeof(Resources).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AppDiagnostic.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
} }
} }
/// <summary> /// <summary>
/// Overrides the current thread's CurrentUICulture property for all /// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class. /// resource lookups using this strongly typed resource class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture internal static global::System.Globalization.CultureInfo Culture {
{ get {
get
{
return resourceCulture; return resourceCulture;
} }
set set {
{
resourceCulture = value; resourceCulture = value;
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon TBF_icon {
get {
object obj = ResourceManager.GetObject("TBF_icon", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
} }
} }

View File

@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
@ -60,6 +60,7 @@
: and then encoded with base64 encoding. : 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:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
@ -68,9 +69,10 @@
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
@ -85,9 +87,10 @@
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <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:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
@ -109,9 +112,13 @@
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="TBF_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TBF_icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -49,6 +49,8 @@ namespace Results.Forms
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
firstEnabledControl = null; firstEnabledControl = null;
lastSizeChange = DateTime.Now; lastSizeChange = DateTime.Now;
nrGroups = 1; nrGroups = 1;

View File

@ -24,7 +24,10 @@ namespace Results.Forms
public ManualEntryConfigDlg() public ManualEntryConfigDlg()
{ {
InitializeComponent(); InitializeComponent();
manualEntryConfigCtrl.Unlocked = true;
this.Icon = Properties.Resources.TBF_icon;
manualEntryConfigCtrl.Unlocked = true;
} }

View File

@ -25,6 +25,8 @@ namespace Results.Forms
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
Localize(); Localize();
ShowAllResults(wm); ShowAllResults(wm);

View File

@ -35,7 +35,10 @@ namespace Results.Forms
public ResultsConfigDlg() public ResultsConfigDlg()
{ {
InitializeComponent(); InitializeComponent();
resultsConfigCtrl.Unlocked = true;
this.Icon = Properties.Resources.TBF_icon;
resultsConfigCtrl.Unlocked = true;
} }

View File

@ -19,7 +19,7 @@ namespace Results.Properties {
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources { internal class Resources {
@ -69,5 +69,15 @@ namespace Results.Properties {
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon TBF_icon {
get {
object obj = ResourceManager.GetObject("TBF_icon", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
} }
} }

View File

@ -121,4 +121,7 @@
<data name="Headpic" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Headpic" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Headpic.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Headpic.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="TBF_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TBF_icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -256,6 +256,7 @@
<ItemGroup> <ItemGroup>
<Content Include="Entities\PurchaseEntities\createPurchaseTables.sql" /> <Content Include="Entities\PurchaseEntities\createPurchaseTables.sql" />
<Content Include="Entities\PurchaseEntities\ImportPurchaseOrderTestData.sql" /> <Content Include="Entities\PurchaseEntities\ImportPurchaseOrderTestData.sql" />
<None Include="Resources\TBF_icon.ico" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@ -1,5 +1,8 @@
is_global = true is_global = true
build_property.RootNamespace = SharedComponents build_property.RootNamespace = SharedComponents
build_property.ProjectDir = C:\Users\micha\git\tbf\SharedComponents\ build_property.ProjectDir = C:\Sensus projects\LocalBranch_start_at_19.2.2026\tbf-exchange260123\tbf\SharedComponents\
build_property.EnableComHosting = build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop = build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.CsWinRTUseWindowsUIXamlProjections = false
build_property.EffectiveAnalysisLevelStyle =
build_property.EnableCodeStyleSeverity =

View File

@ -5,11 +5,12 @@
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\micha\.nuget\packages\</NuGetPackageFolders> <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\MFRNIAK\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion> <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.14.0</NuGetToolVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\micha\.nuget\packages\" /> <SourceRoot Include="C:\Users\MFRNIAK\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -44,6 +44,8 @@ namespace SharedDatabase.Forms
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
loginStatePictureBox1.Image = Properties.Resources.questionMark; loginStatePictureBox1.Image = Properties.Resources.questionMark;
loginStatePictureBox2.Image = Properties.Resources.questionMark; loginStatePictureBox2.Image = Properties.Resources.questionMark;
authorizedUser1 = null; authorizedUser1 = null;

View File

@ -31,6 +31,9 @@ namespace SharedDatabase.Forms
public EditSelectedUser() public EditSelectedUser()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
this.toolTip1.SetToolTip(this.txtName, string.Format(Strings.max_0_alphanum_chars, 20)); this.toolTip1.SetToolTip(this.txtName, string.Format(Strings.max_0_alphanum_chars, 20));
oriGroupMember = new bool[(displayedGroups != null) ? displayedGroups.Count : 0]; oriGroupMember = new bool[(displayedGroups != null) ? displayedGroups.Count : 0];
okBtn.Enabled = false; okBtn.Enabled = false;

View File

@ -45,6 +45,8 @@ namespace SharedDatabase.Forms
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
oriBackColor = BackColor; oriBackColor = BackColor;
} }

View File

@ -22,6 +22,8 @@ namespace SharedDatabase.Forms
public PasswordChangeDlg() public PasswordChangeDlg()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
} }
/// <summary> /// <summary>
@ -30,6 +32,9 @@ namespace SharedDatabase.Forms
public PasswordChangeDlg(string predefinedUser) public PasswordChangeDlg(string predefinedUser)
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
userNameTextBox.Text = predefinedUser; userNameTextBox.Text = predefinedUser;
} }

View File

@ -46,6 +46,8 @@ namespace SharedDatabase.Forms
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
oriBackColor = BackColor; oriBackColor = BackColor;
} }

View File

@ -46,6 +46,8 @@ namespace SharedDatabase.Forms
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
loginStatePictureBox1.Image = Properties.Resources.questionMark; loginStatePictureBox1.Image = Properties.Resources.questionMark;
loginStatePictureBox2.Image = Properties.Resources.questionMark; loginStatePictureBox2.Image = Properties.Resources.questionMark;
loginStatePictureBox3.Image = Properties.Resources.questionMark; loginStatePictureBox3.Image = Properties.Resources.questionMark;

View File

@ -35,6 +35,9 @@ namespace SharedDatabase.Forms
public UserManagementDlg(NHibernate.ISession session, bool showLocalExtensions) public UserManagementDlg(NHibernate.ISession session, bool showLocalExtensions)
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
this.session = session; this.session = session;
this.showExtensions = showLocalExtensions; this.showExtensions = showLocalExtensions;
if (showLocalExtensions) copyFromRemoteButton.Visible = true; if (showLocalExtensions) copyFromRemoteButton.Visible = true;

View File

@ -19,7 +19,7 @@ namespace SharedDatabase.Properties {
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources { internal class Resources {
@ -89,5 +89,15 @@ namespace SharedDatabase.Properties {
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon TBF_icon {
get {
object obj = ResourceManager.GetObject("TBF_icon", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
} }
} }

View File

@ -127,4 +127,7 @@
<data name="rejected" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="rejected" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Pictures\rejected.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Pictures\rejected.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="TBF_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TBF_icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -221,6 +221,9 @@
<None Include="Pictures\questionMark.bmp" /> <None Include="Pictures\questionMark.bmp" />
<None Include="Pictures\rejected.bmp" /> <None Include="Pictures\rejected.bmp" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="Resources\TBF_icon.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -19,7 +19,7 @@ namespace TBF.Properties {
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources { internal class Resources {
@ -150,6 +150,16 @@ namespace TBF.Properties {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
internal static System.Drawing.Icon TBF_icon {
get {
object obj = ResourceManager.GetObject("TBF_icon", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>

View File

@ -208,4 +208,7 @@
<data name="TControl_XL_idle" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="TControl_XL_idle" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Rig\Modbus\TempControl\Pictures\TControl-XL-idle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Rig\Modbus\TempControl\Pictures\TControl-XL-idle.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="TBF_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TBF_icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

BIN
TBF/Resources/TBF_icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -57,6 +57,9 @@ namespace TBF.Rig.DataEntry.Combined
public CycleBeginningForm(int compoundWaterMetersCount, bool remarksEnabled) public CycleBeginningForm(int compoundWaterMetersCount, bool remarksEnabled)
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false; ControlBox = false;
TextBoxesCount = 3; TextBoxesCount = 3;

View File

@ -33,7 +33,10 @@ namespace TBF.Rig.DataEntry.Combined
public CycleEndForm() public CycleEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
MainStateText = new string[TBF.Data.CompoundWMsCount]; MainStateText = new string[TBF.Data.CompoundWMsCount];
AuxStateText = new string[TBF.Data.CompoundWMsCount]; AuxStateText = new string[TBF.Data.CompoundWMsCount];

View File

@ -56,7 +56,10 @@ namespace TBF.Rig.DataEntry.Combined
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 3; TextBoxesCount = 3;

View File

@ -49,7 +49,10 @@ namespace TBF.Rig.DataEntry.HeatMeters12
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] { label1, label2, label3, label4, label5, label6, labels = new Label[] { label1, label2, label3, label4, label5, label6,
label7, label8, label9, label10, label11, label12 }; label7, label8, label9, label10, label11, label12 };

View File

@ -29,7 +29,10 @@ namespace TBF.Rig.DataEntry.HeatMeters12
public CycleEndForm(int waterMetersCount) public CycleEndForm(int waterMetersCount)
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
this.WaterMetersCount = waterMetersCount; this.WaterMetersCount = waterMetersCount;
EndStateText = new string[WaterMetersCount]; EndStateText = new string[WaterMetersCount];

View File

@ -61,7 +61,10 @@ namespace TBF.Rig.DataEntry.HeatMeters12
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 12; TextBoxesCount = 12;

View File

@ -49,7 +49,10 @@ namespace TBF.Rig.DataEntry.HeatMeters6
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] { label1, label2, label3, label4, label5, label6 }; labels = new Label[] { label1, label2, label3, label4, label5, label6 };
comboBoxes = new ComboBox[] { comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6 }; comboBoxes = new ComboBox[] { comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6 };

View File

@ -29,7 +29,10 @@ namespace TBF.Rig.DataEntry.HeatMeters6
public CycleEndForm(int waterMetersCount) public CycleEndForm(int waterMetersCount)
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
this.WaterMetersCount = waterMetersCount; this.WaterMetersCount = waterMetersCount;
EndStateText = new string[WaterMetersCount]; EndStateText = new string[WaterMetersCount];

View File

@ -61,7 +61,10 @@ namespace TBF.Rig.DataEntry.HeatMeters6
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 6; TextBoxesCount = 6;

View File

@ -40,7 +40,10 @@ namespace TBF.Rig.DataEntry.PoseidonCmd
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
preselectedOrder = null; preselectedOrder = null;
completed = false; completed = false;

View File

@ -51,7 +51,10 @@ namespace TBF.Rig.DataEntry.PoseidonCmd
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 48; TextBoxesCount = 48;

View File

@ -133,6 +133,9 @@ namespace TBF.Rig.DataEntry.S620
public FormForMechanicalMetersWithTracing() public FormForMechanicalMetersWithTracing()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false; ControlBox = false;
oriBackColor = BackColor; oriBackColor = BackColor;
ManageCheckGroupBox(batchesCheckBox, batchesGroupBox); ManageCheckGroupBox(batchesCheckBox, batchesGroupBox);

View File

@ -54,7 +54,10 @@ namespace TBF.Rig.DataEntry.S620
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 48; TextBoxesCount = 48;

View File

@ -37,7 +37,10 @@ namespace TBF.Rig.DataEntry.Single
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = 24; textBoxesCount = 24;
labels = new Label[] labels = new Label[]

View File

@ -35,7 +35,10 @@ namespace TBF.Rig.DataEntry.Single
public CycleEndForm() public CycleEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] labels = new Label[]
{ {

View File

@ -58,7 +58,10 @@ namespace TBF.Rig.DataEntry.Single
public TestStartEndForm(int waterMetersCount, int lineSize) public TestStartEndForm(int waterMetersCount, int lineSize)
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
WaterMetersCount = waterMetersCount; WaterMetersCount = waterMetersCount;

View File

@ -50,7 +50,10 @@ namespace TBF.Rig.DataEntry.Standard12
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] { label1, label2, label3, label4, label5, label6, labels = new Label[] { label1, label2, label3, label4, label5, label6,
label7, label8, label9, label10, label11, label12 }; label7, label8, label9, label10, label11, label12 };

View File

@ -34,7 +34,10 @@ namespace TBF.Rig.DataEntry.Standard12
public CycleEndForm() public CycleEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] labels = new Label[]
{ {

View File

@ -51,7 +51,10 @@ namespace TBF.Rig.DataEntry.Standard12
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 12; TextBoxesCount = 12;

View File

@ -51,7 +51,10 @@ namespace TBF.Rig.DataEntry.Standard24
public AdvancedFixedStartTestForm() public AdvancedFixedStartTestForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 24; TextBoxesCount = 24;

View File

@ -37,7 +37,10 @@ namespace TBF.Rig.DataEntry.Standard24
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = 24; textBoxesCount = 24;
labels = new Label[] labels = new Label[]

View File

@ -35,7 +35,10 @@ namespace TBF.Rig.DataEntry.Standard24
public CycleEndForm() public CycleEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] labels = new Label[]
{ {

View File

@ -64,7 +64,10 @@ namespace TBF.Rig.DataEntry.Standard24
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 24; TextBoxesCount = 24;

View File

@ -37,7 +37,10 @@ namespace TBF.Rig.DataEntry.Standard48
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = 48; textBoxesCount = 48;
labels = new Label[] labels = new Label[]

View File

@ -29,7 +29,10 @@ namespace TBF.Rig.DataEntry.Standard48
public CycleEndForm(int waterMetersCount) public CycleEndForm(int waterMetersCount)
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
this.WaterMetersCount = waterMetersCount; this.WaterMetersCount = waterMetersCount;
EndStateText = new string[WaterMetersCount]; EndStateText = new string[WaterMetersCount];

View File

@ -54,7 +54,10 @@ namespace TBF.Rig.DataEntry.Standard48
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 48; TextBoxesCount = 48;

View File

@ -40,7 +40,10 @@ namespace TBF.Rig.DataEntry.Standard6
public CycleBeginningForm(int waterMetersCount, bool remarksEnabled) public CycleBeginningForm(int waterMetersCount, bool remarksEnabled)
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
comboBoxes = new ComboBox[] { comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6 }; comboBoxes = new ComboBox[] { comboBox1, comboBox2, comboBox3, comboBox4, comboBox5, comboBox6 };
checkBoxes = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4, checkBox5, checkBox6 }; checkBoxes = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4, checkBox5, checkBox6 };

View File

@ -38,7 +38,10 @@ namespace TBF.Rig.DataEntry.Standard6
public CycleEndForm() public CycleEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] { label1, label2, label3, label4, label5, label6 }; labels = new Label[] { label1, label2, label3, label4, label5, label6 };
stateBoxes = new TextBox[] { textBox1, textBox2, textBox3, textBox4, textBox5, textBox6 }; stateBoxes = new TextBox[] { textBox1, textBox2, textBox3, textBox4, textBox5, textBox6 };

View File

@ -46,7 +46,10 @@ namespace TBF.Rig.DataEntry.Standard6
public TestStartEndForm(int waterMetersCount, IRegReader[] regReaders, bool[] disabled) public TestStartEndForm(int waterMetersCount, IRegReader[] regReaders, bool[] disabled)
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
endStates = false; endStates = false;
this.WaterMetersCount = waterMetersCount; this.WaterMetersCount = waterMetersCount;

View File

@ -37,7 +37,10 @@ namespace TBF.Rig.DataEntry.StandardCamera
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = 24; textBoxesCount = 24;
labels = new Label[] labels = new Label[]

View File

@ -35,7 +35,10 @@ namespace TBF.Rig.DataEntry.StandardCamera
public CycleEndForm() public CycleEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] labels = new Label[]
{ {

View File

@ -96,7 +96,10 @@ namespace TBF.Rig.DataEntry.StandardCamera
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] labels = new Label[]
{ {

View File

@ -57,6 +57,9 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false; ControlBox = false;
textBoxesCount = 48; textBoxesCount = 48;

View File

@ -35,7 +35,10 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
public CycleEndForm() public CycleEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] labels = new Label[]
{ {

View File

@ -96,7 +96,10 @@ namespace TBF.Rig.DataEntry.StandartCameraPurchaseOrder
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
labels = new Label[] labels = new Label[]
{ {

View File

@ -68,7 +68,10 @@ namespace TBF.Rig.DataEntry.Uni
public CycleBgEnForm() public CycleBgEnForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
completed = false; completed = false;
StartForceCloseHandler(); StartForceCloseHandler();
} }

View File

@ -121,7 +121,10 @@ namespace TBF.Rig.DataEntry.Uni
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
imageProcessingThread = null; imageProcessingThread = null;
completed = false; completed = false;
StartForceCloseHandler(); StartForceCloseHandler();

View File

@ -39,7 +39,10 @@ namespace TBF.Rig.DataEntry.iPerl
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
completed = false; completed = false;
StartForceCloseHandler(); StartForceCloseHandler();

View File

@ -50,7 +50,10 @@ namespace TBF.Rig.DataEntry.iPerl
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 48; TextBoxesCount = 48;

View File

@ -22,7 +22,10 @@ namespace TBF.Rig.Modbus.QuidoRS
{ {
InitializeComponent(); InitializeComponent();
Localize(); this.Icon = Properties.Resources.TBF_icon;
Localize();
messageLabel.Text = message; messageLabel.Text = message;
BackColor = backgroundColor; BackColor = backgroundColor;

View File

@ -11,12 +11,18 @@ namespace TBF.Rig.Network.Camera.CJMS11
public TerminalDlg() public TerminalDlg()
{ {
InitializeComponent(); InitializeComponent();
}
public TerminalDlg(string name, TelnetClient telnet) this.Icon = Properties.Resources.TBF_icon;
}
public TerminalDlg(string name, TelnetClient telnet)
{ {
InitializeComponent(); InitializeComponent();
Text = name;
this.Icon = Properties.Resources.TBF_icon;
Text = name;
this.telnet = telnet; this.telnet = telnet;
} }

View File

@ -11,12 +11,18 @@ namespace TBF.Rig.Network.Camera.CLP1611
public TerminalDlg() public TerminalDlg()
{ {
InitializeComponent(); InitializeComponent();
}
public TerminalDlg(string name, TelnetClient telnet) this.Icon = Properties.Resources.TBF_icon;
}
public TerminalDlg(string name, TelnetClient telnet)
{ {
InitializeComponent(); InitializeComponent();
Text = name;
this.Icon = Properties.Resources.TBF_icon;
Text = name;
this.telnet = telnet; this.telnet = telnet;
} }

View File

@ -73,7 +73,10 @@ namespace TBF.Rig.Network.Camera.Display
{ {
InitializeComponent(); InitializeComponent();
this.imageFileNames = imageFileNames; this.Icon = Properties.Resources.TBF_icon;
this.imageFileNames = imageFileNames;
this.imagesCount = (imageFileNames == null) ? 0 : imageFileNames.Length; this.imagesCount = (imageFileNames == null) ? 0 : imageFileNames.Length;
groupBoxes = new GroupBox[] { groupBox1, groupBox2, groupBox3, groupBox4, groupBox5, groupBox6, groupBoxes = new GroupBox[] { groupBox1, groupBox2, groupBox3, groupBox4, groupBox5, groupBox6,

View File

@ -21,6 +21,9 @@ namespace TBF.Rig.Operations
public AskYesNoForm(string question) public AskYesNoForm(string question)
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false; ControlBox = false;
Localize(); Localize();

View File

@ -21,9 +21,12 @@ namespace TBF.Rig.Operations
public LargeMessageBoxForm(string message, Color backgroundColor) public LargeMessageBoxForm(string message, Color backgroundColor)
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
//ControlBox = false; //ControlBox = false;
Localize(); Localize();
messageLabel.Text = message; messageLabel.Text = message;
BackColor = backgroundColor; BackColor = backgroundColor;

View File

@ -21,9 +21,12 @@ namespace TBF.Rig.Operations
public MessageBoxForm(string message, Color backgroundColor) public MessageBoxForm(string message, Color backgroundColor)
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
//ControlBox = false; //ControlBox = false;
Localize(); Localize();
messageLabel.Text = message; messageLabel.Text = message;
BackColor = backgroundColor; BackColor = backgroundColor;

View File

@ -17,6 +17,9 @@ namespace TBF.Rig.Output
public HeaderFooterDlg() public HeaderFooterDlg()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
} }
public HeaderFooterDlg(bool isHeader, string text) public HeaderFooterDlg(bool isHeader, string text)

View File

@ -30,8 +30,11 @@ namespace TBF.Rig.Output.Printers.GroupPrinting.Single
public PrinterTestBenchComponentSelectorDlg() public PrinterTestBenchComponentSelectorDlg()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
} }
private void LoadFormPosition() private void LoadFormPosition()
{ {
LocalSettings ls = Program.LocalSettings; LocalSettings ls = Program.LocalSettings;

View File

@ -37,7 +37,10 @@ namespace TBF.Rig.RegisterReaders.KPackE.DataEntryForRadio
public CycleBeginningForm() public CycleBeginningForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = 48; textBoxesCount = 48;
labels = new Label[] labels = new Label[]

View File

@ -55,7 +55,10 @@ namespace TBF.Rig.RegisterReaders.KPackE.DataEntryForRadio
public TestStartEndForm() public TestStartEndForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
TextBoxesCount = 48; TextBoxesCount = 48;

View File

@ -63,7 +63,10 @@ namespace TBF.Rig.TestMethods.Adjustment
public WMErrorsForm() public WMErrorsForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
completed = false; completed = false;

View File

@ -46,7 +46,10 @@ namespace TBF.Rig.TestMethods.Adjustment
public WMErrorsForm12() public WMErrorsForm12()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = MaxWMsCount; textBoxesCount = MaxWMsCount;

View File

@ -45,7 +45,10 @@ namespace TBF.Rig.TestMethods.Adjustment
public WMErrorsForm24() public WMErrorsForm24()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = MaxWMsCount; textBoxesCount = MaxWMsCount;

View File

@ -45,7 +45,10 @@ namespace TBF.Rig.TestMethods.Adjustment
public WMErrorsForm48() public WMErrorsForm48()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = MaxWMsCount; textBoxesCount = MaxWMsCount;

View File

@ -47,7 +47,10 @@ namespace TBF.Rig.TestMethods.Endurance
InitializeComponent(); InitializeComponent();
/// SharedDlgButtons configuration this.Icon = Properties.Resources.TBF_icon;
/// SharedDlgButtons configuration
sharedButtons.ParentForm = this; sharedButtons.ParentForm = this;
sharedButtons.RequiredGroupMembership = new Common.GID[] { Common.GID.Metrologists }; sharedButtons.RequiredGroupMembership = new Common.GID[] { Common.GID.Metrologists };
sharedButtons.OptionalButtons = SharedButtons.Buttons.Add | sharedButtons.OptionalButtons = SharedButtons.Buttons.Add |

View File

@ -41,6 +41,9 @@ namespace TBF.Rig.TestMethods.ManualEntry
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
groupBoxes = new GroupBox[] { groupBox1, groupBox2, groupBox3, groupBox4, groupBox5, groupBox6, groupBox7 }; groupBoxes = new GroupBox[] { groupBox1, groupBox2, groupBox3, groupBox4, groupBox5, groupBox6, groupBox7 };
labels = new Label[] { label1, label2, label3, label4, label5, label6, label7 }; labels = new Label[] { label1, label2, label3, label4, label5, label6, label7 };
textBoxes = new TextBox[] { textBox1, textBox2, textBox3, textBox4, textBox5, textBox6, textBox7 }; textBoxes = new TextBox[] { textBox1, textBox2, textBox3, textBox4, textBox5, textBox6, textBox7 };

View File

@ -57,7 +57,10 @@ namespace TBF.Rig.TestMethods.PulsesTest
public WMPulsesForm() public WMPulsesForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
completed = false; completed = false;
minPulsesCount = 1; /// Must be >0 so that initially the indication is RED minPulsesCount = 1; /// Must be >0 so that initially the indication is RED

View File

@ -44,7 +44,10 @@ namespace TBF.Rig.TestMethods.PulsesTest
public WMPulsesForm12() public WMPulsesForm12()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = MaxWMsCount; textBoxesCount = MaxWMsCount;

View File

@ -44,7 +44,10 @@ namespace TBF.Rig.TestMethods.PulsesTest
public WMPulsesForm24() public WMPulsesForm24()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = MaxWMsCount; textBoxesCount = MaxWMsCount;

View File

@ -56,7 +56,10 @@ namespace TBF.Rig.TestMethods.PulsesTestManual
public ManualPulsesForm() public ManualPulsesForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
completed = false; completed = false;

View File

@ -49,7 +49,10 @@ namespace TBF.Rig.TestMethods.PulsesTestManual
public ManualPulsesForm12() public ManualPulsesForm12()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = MaxWMsCount; textBoxesCount = MaxWMsCount;

View File

@ -50,7 +50,10 @@ namespace TBF.Rig.TestMethods.PulsesTestManual
public ManualPulsesForm24() public ManualPulsesForm24()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
textBoxesCount = MaxWMsCount; textBoxesCount = MaxWMsCount;

View File

@ -144,6 +144,8 @@ namespace TBF.Rig.TestMethods.S640Communication
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
labels = new Label[UIBoxesCount] labels = new Label[UIBoxesCount]
{ {
wmLabel1, wmLabel2, wmLabel3, wmLabel4, wmLabel5, wmLabel6, wmLabel7, wmLabel1, wmLabel2, wmLabel3, wmLabel4, wmLabel5, wmLabel6, wmLabel7,

View File

@ -211,6 +211,9 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
public iPerlCommunicationFormTestMethod() public iPerlCommunicationFormTestMethod()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
} }
/// <summary> /// <summary>

View File

@ -277,6 +277,8 @@ namespace TBF.Rig.Uni.SharedDialogs.SmartMetersCommunication
public SmartCommunicationForm() public SmartCommunicationForm()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
} }
/// <summary> /// <summary>

View File

@ -24,6 +24,9 @@ namespace TBF.Rig.Various.CoverTest
public CoverTestForm(string message, GID[] bypassLevel, ILog bypassLog) public CoverTestForm(string message, GID[] bypassLevel, ILog bypassLog)
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false; ControlBox = false;
this.message = message; this.message = message;

View File

@ -27,7 +27,10 @@ namespace TBF.Rig.Various.ManualLevelMsrmnt
public WaterLevelForm() public WaterLevelForm()
{ {
InitializeComponent(); InitializeComponent();
ControlBox = false;
this.Icon = Properties.Resources.TBF_icon;
ControlBox = false;
Level_mm = 0; Level_mm = 0;
completed = false; completed = false;
StartForceCloseHandler(); StartForceCloseHandler();

View File

@ -101,6 +101,9 @@
<PropertyGroup> <PropertyGroup>
<SignManifests>false</SignManifests> <SignManifests>false</SignManifests>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<ApplicationIcon>TBF_icon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Castle.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL"> <Reference Include="Castle.Core, Version=5.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
<HintPath>..\packages\Castle.Core.5.1.1\lib\net462\Castle.Core.dll</HintPath> <HintPath>..\packages\Castle.Core.5.1.1\lib\net462\Castle.Core.dll</HintPath>
@ -1456,7 +1459,9 @@
<Compile Include="Rig\Scales\MettlerToledo\Factory.cs" /> <Compile Include="Rig\Scales\MettlerToledo\Factory.cs" />
<Compile Include="Rig\Scales\MettlerToledo\GetSerNumOp.cs" /> <Compile Include="Rig\Scales\MettlerToledo\GetSerNumOp.cs" />
<Compile Include="Rig\Scales\MettlerToledo\ReadStableMassOp.cs" /> <Compile Include="Rig\Scales\MettlerToledo\ReadStableMassOp.cs" />
<Compile Include="Rig\Scales\MettlerToledo\SerialPortDevice.cs" /> <Compile Include="Rig\Scales\MettlerToledo\SerialPortDevice.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Rig\Scales\MettlerToledo\SerialPortDeviceFake.cs" /> <Compile Include="Rig\Scales\MettlerToledo\SerialPortDeviceFake.cs" />
<Compile Include="Rig\Scales\MettlerToledo\SetUnitsOp.cs" /> <Compile Include="Rig\Scales\MettlerToledo\SetUnitsOp.cs" />
<Compile Include="Rig\Scales\MettlerToledo\TaringOp.cs" /> <Compile Include="Rig\Scales\MettlerToledo\TaringOp.cs" />
@ -3978,6 +3983,7 @@
<None Include="Resources\qrcode-48x48.png" /> <None Include="Resources\qrcode-48x48.png" />
<Content Include="Resources\switch-off.png" /> <Content Include="Resources\switch-off.png" />
<Content Include="Resources\switch-on.png" /> <Content Include="Resources\switch-on.png" />
<None Include="Resources\TBF_icon.ico" />
<Content Include="Rig\Modbus\TempControl\Pictures\TControl-L-both.png" /> <Content Include="Rig\Modbus\TempControl\Pictures\TControl-L-both.png" />
<Content Include="Rig\Modbus\TempControl\Pictures\TControl-L-cooling.png" /> <Content Include="Rig\Modbus\TempControl\Pictures\TControl-L-cooling.png" />
<Content Include="Rig\Modbus\TempControl\Pictures\TControl-L-heating.png" /> <Content Include="Rig\Modbus\TempControl\Pictures\TControl-L-heating.png" />
@ -4000,6 +4006,7 @@
<Content Include="SampleConfig\log4netConfig.xml"> <Content Include="SampleConfig\log4netConfig.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
<Content Include="TBF_icon.ico" />
<Content Include="x64\SQLite.Interop.dll"> <Content Include="x64\SQLite.Interop.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>

BIN
TBF/TBF_icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -40,6 +40,9 @@ namespace TBF.UI.Bench.Components
ComponentParametersDlg() ComponentParametersDlg()
{ {
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
} }
/// <summary> /// <summary>

View File

@ -72,6 +72,8 @@ namespace TBF.UI.Bench.Components
InitializeComponent(); InitializeComponent();
this.Icon = Properties.Resources.TBF_icon;
flags = CfgUpdateFlags.None; flags = CfgUpdateFlags.None;
selectComponentTypeDlg = new SelectComponentClassDlg(); selectComponentTypeDlg = new SelectComponentClassDlg();

Some files were not shown because too many files have changed in this diff Show More