This commit is contained in:
STAM 2020-01-19 21:51:21 +03:00
parent d50cac95a1
commit 78d49fd579
19 changed files with 48 additions and 46 deletions

View File

@ -38,8 +38,8 @@
this.linkLabelIconSite = new System.Windows.Forms.LinkLabel(); this.linkLabelIconSite = new System.Windows.Forms.LinkLabel();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.groupBox = new System.Windows.Forms.GroupBox(); this.groupBox = new System.Windows.Forms.GroupBox();
this.linkLabelFP = new System.Windows.Forms.LinkLabel();
this.linkLabelTI = new System.Windows.Forms.LinkLabel(); this.linkLabelTI = new System.Windows.Forms.LinkLabel();
this.linkLabelFP = new System.Windows.Forms.LinkLabel();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxLogo)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxLogo)).BeginInit();
this.groupBox.SuspendLayout(); this.groupBox.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -142,17 +142,6 @@
this.groupBox.TabStop = false; this.groupBox.TabStop = false;
this.groupBox.Text = "Icons by:"; this.groupBox.Text = "Icons by:";
// //
// linkLabelFP
//
this.linkLabelFP.AutoSize = true;
this.linkLabelFP.Location = new System.Drawing.Point(79, 21);
this.linkLabelFP.Name = "linkLabelFP";
this.linkLabelFP.Size = new System.Drawing.Size(42, 13);
this.linkLabelFP.TabIndex = 28;
this.linkLabelFP.TabStop = true;
this.linkLabelFP.Text = "Freepik";
this.linkLabelFP.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelFP_LinkClicked);
//
// linkLabelTI // linkLabelTI
// //
this.linkLabelTI.AutoSize = true; this.linkLabelTI.AutoSize = true;
@ -164,6 +153,17 @@
this.linkLabelTI.Text = "Those Icons"; this.linkLabelTI.Text = "Those Icons";
this.linkLabelTI.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelTI_LinkClicked); this.linkLabelTI.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelTI_LinkClicked);
// //
// linkLabelFP
//
this.linkLabelFP.AutoSize = true;
this.linkLabelFP.Location = new System.Drawing.Point(79, 21);
this.linkLabelFP.Name = "linkLabelFP";
this.linkLabelFP.Size = new System.Drawing.Size(42, 13);
this.linkLabelFP.TabIndex = 28;
this.linkLabelFP.TabStop = true;
this.linkLabelFP.Text = "Freepik";
this.linkLabelFP.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabelFP_LinkClicked);
//
// FormAbout // FormAbout
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View File

@ -6,9 +6,9 @@ namespace UniversalValveToolbox {
public partial class FormAbout : Form { public partial class FormAbout : Form {
public FormAbout() { public FormAbout() {
InitializeComponent(); InitializeComponent();
labelVersion.Text = VersionHelper.AssemblyVersion; labelVersion.Text = Utils.VersionHelper.AssemblyVersion;
labelTitle.Text = VersionHelper.AssemblyTitle; labelTitle.Text = Utils.VersionHelper.AssemblyTitle;
labelCopy.Text = VersionHelper.AssemblyCopyright; labelCopy.Text = Utils.VersionHelper.AssemblyCopyright;
} }
private void FormAbout_Load(object sender, EventArgs e) { private void FormAbout_Load(object sender, EventArgs e) {

View File

@ -2,8 +2,8 @@
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Windows.Forms; using System.Windows.Forms;
using UniversalValveToolbox.Util; using UniversalValveToolbox.Utils;
using UniversalValveToolbox.Util.Dto; using UniversalValveToolbox.Utils.Dto;
namespace UniversalValveToolbox { namespace UniversalValveToolbox {
public partial class FormMain : Form { public partial class FormMain : Form {

View File

@ -1,7 +1,7 @@
using kasthack.binding.wf; using kasthack.binding.wf;
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using UniversalValveToolbox.Util.Dto; using UniversalValveToolbox.Utils.Dto;
namespace UniversalValveToolbox { namespace UniversalValveToolbox {
public partial class FormSettings : Form { public partial class FormSettings : Form {

View File

@ -60,34 +60,34 @@
<Reference Include="WindowsFormsIntegration" /> <Reference Include="WindowsFormsIntegration" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Form\FormAbout.cs"> <Compile Include="UI\FormAbout.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Form\FormAbout.Designer.cs"> <Compile Include="UI\FormAbout.Designer.cs">
<DependentUpon>FormAbout.cs</DependentUpon> <DependentUpon>FormAbout.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Form\FormAddons.cs"> <Compile Include="UI\FormAddons.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Form\FormAddons.Designer.cs"> <Compile Include="UI\FormAddons.Designer.cs">
<DependentUpon>FormAddons.cs</DependentUpon> <DependentUpon>FormAddons.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Form\FormProfiles.cs"> <Compile Include="UI\FormProfiles.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Form\FormProfiles.Designer.cs"> <Compile Include="UI\FormProfiles.Designer.cs">
<DependentUpon>FormProfiles.cs</DependentUpon> <DependentUpon>FormProfiles.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Form\FormMain.cs"> <Compile Include="UI\FormMain.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Form\FormMain.Designer.cs"> <Compile Include="UI\FormMain.Designer.cs">
<DependentUpon>FormMain.cs</DependentUpon> <DependentUpon>FormMain.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Form\FormSettings.cs"> <Compile Include="UI\FormSettings.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Form\FormSettings.Designer.cs"> <Compile Include="UI\FormSettings.Designer.cs">
<DependentUpon>FormSettings.cs</DependentUpon> <DependentUpon>FormSettings.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
@ -117,21 +117,21 @@
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>MessageBoxes.resx</DependentUpon> <DependentUpon>MessageBoxes.resx</DependentUpon>
</Compile> </Compile>
<Compile Include="Util\JsonReader.cs" /> <Compile Include="Utils\JsonReader.cs" />
<Compile Include="Util\VersionHelper.cs" /> <Compile Include="Utils\VersionHelper.cs" />
<EmbeddedResource Include="Form\FormAbout.resx"> <EmbeddedResource Include="UI\FormAbout.resx">
<DependentUpon>FormAbout.cs</DependentUpon> <DependentUpon>FormAbout.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Form\FormAddons.resx"> <EmbeddedResource Include="UI\FormAddons.resx">
<DependentUpon>FormAddons.cs</DependentUpon> <DependentUpon>FormAddons.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Form\FormProfiles.resx"> <EmbeddedResource Include="UI\FormProfiles.resx">
<DependentUpon>FormProfiles.cs</DependentUpon> <DependentUpon>FormProfiles.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Form\FormMain.resx"> <EmbeddedResource Include="UI\FormMain.resx">
<DependentUpon>FormMain.cs</DependentUpon> <DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Form\FormSettings.resx"> <EmbeddedResource Include="UI\FormSettings.resx">
<DependentUpon>FormSettings.cs</DependentUpon> <DependentUpon>FormSettings.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">

View File

@ -1,16 +1,13 @@
using Newtonsoft.Json; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.IO; using System.IO;
using System.Linq;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using UniversalValveToolbox.Util.Dto; using UniversalValveToolbox.Utils.Dto;
using Newtonsoft.Json;
namespace UniversalValveToolbox.Util { namespace UniversalValveToolbox.Utils {
class DataManager { class DataManager {
private readonly string SettingsPath = Path.Combine(Application.StartupPath, "json", "settings.json"); private readonly string SettingsPath = Path.Combine(Application.StartupPath, "json", "settings.json");
@ -23,7 +20,7 @@ namespace UniversalValveToolbox.Util {
} }
} }
namespace UniversalValveToolbox.Util.Dto { namespace UniversalValveToolbox.Utils.Dto {
public class Addon : BaseModel { public class Addon : BaseModel {
private int[] engine; private int[] engine;

View File

@ -1,8 +1,8 @@
using System; using System;
using System.Reflection; using System.Reflection;
namespace UniversalValveToolbox { namespace UniversalValveToolbox.Utils {
class VersionHelper { internal static class VersionHelper {
public static string AssemblyVersion { public static string AssemblyVersion {
get { get {
return " " + Assembly.GetExecutingAssembly().GetName().Version.ToString(); return " " + Assembly.GetExecutingAssembly().GetName().Version.ToString();

View File

@ -1,6 +1,11 @@
{ {
"DefaultProject": null, "DefaultProject": null,
"AvalibleEnginies": null, "AvalibleEnginies": null,
"Language": "Россиян", "Language": [
{
"selected": "en-US",
"available": [ "en-US", "ru-RU" ]
}
],
"Theme": null "Theme": null
} }