Upgrade to Modern VS
This commit is contained in:
20
Backup/BaseConverter.sln
Executable file
20
Backup/BaseConverter.sln
Executable file
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C# Express 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BaseConverter", "BaseConverter\BaseConverter.csproj", "{9AB5033E-6312-4170-9C91-46367A86367E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9AB5033E-6312-4170-9C91-46367A86367E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9AB5033E-6312-4170-9C91-46367A86367E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9AB5033E-6312-4170-9C91-46367A86367E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9AB5033E-6312-4170-9C91-46367A86367E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
132
Backup/BaseConverter/BaseConverter.csproj
Executable file
132
Backup/BaseConverter/BaseConverter.csproj
Executable file
@@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.21022</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{9AB5033E-6312-4170-9C91-46367A86367E}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>WindowsFormsApplication1</RootNamespace>
|
||||
<AssemblyName>BaseConverter</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ManifestCertificateThumbprint>8E4755E7D781A587530C73F757CE9805D22E1DEC</ManifestCertificateThumbprint>
|
||||
<ManifestKeyFile>BaseConverter_TemporaryKey.pfx</ManifestKeyFile>
|
||||
<GenerateManifests>true</GenerateManifests>
|
||||
<SignManifests>true</SignManifests>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>C:\Documents and Settings\Caleb Fontenot\Desktop\Stuff\VS Projects\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>1</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<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' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<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>
|
||||
<SubType>Designer</SubType>
|
||||
</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="BaseConverter_TemporaryKey.pfx" />
|
||||
<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>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Windows Installer 3.1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- 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.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
16
Backup/BaseConverter/BaseConverter.csproj.user
Executable file
16
Backup/BaseConverter/BaseConverter.csproj.user
Executable file
@@ -0,0 +1,16 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<PublishUrlHistory>
|
||||
</PublishUrlHistory>
|
||||
<InstallUrlHistory>
|
||||
</InstallUrlHistory>
|
||||
<SupportUrlHistory>
|
||||
</SupportUrlHistory>
|
||||
<UpdateUrlHistory>
|
||||
</UpdateUrlHistory>
|
||||
<BootstrapperUrlHistory>
|
||||
</BootstrapperUrlHistory>
|
||||
<FallbackCulture>en-US</FallbackCulture>
|
||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
||||
</PropertyGroup>
|
||||
</Project>
|
BIN
Backup/BaseConverter/BaseConverter_TemporaryKey.pfx
Executable file
BIN
Backup/BaseConverter/BaseConverter_TemporaryKey.pfx
Executable file
Binary file not shown.
436
Backup/BaseConverter/Form1.Designer.cs
generated
Executable file
436
Backup/BaseConverter/Form1.Designer.cs
generated
Executable file
@@ -0,0 +1,436 @@
|
||||
/*
|
||||
Base-Converter - This file is a part of Base Converter
|
||||
Copyright (C) 2022 Caleb Fontenot <foley2431@gmail.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace WindowsFormsApplication1
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.computeButton = new System.Windows.Forms.Button();
|
||||
this.clearButton = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.hexTextBox = new System.Windows.Forms.TextBox();
|
||||
this.binaryGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.binaryTextBox = new System.Windows.Forms.TextBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.decimalTextBox = new System.Windows.Forms.TextBox();
|
||||
this.exitButton = new System.Windows.Forms.Button();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.octalRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.decimalRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.hexRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.binaryRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.octalTextBox = new System.Windows.Forms.TextBox();
|
||||
this.autoCompute = new System.Windows.Forms.CheckBox();
|
||||
this.autoComputeToolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.paddingToggle = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.paddingOffsetTextBox = new System.Windows.Forms.TextBox();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.spacingOffsetTextBox = new System.Windows.Forms.TextBox();
|
||||
this.spacingToggle = new System.Windows.Forms.CheckBox();
|
||||
this.debugLabel = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.binaryGroupBox.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// computeButton
|
||||
//
|
||||
this.computeButton.Location = new System.Drawing.Point(12, 329);
|
||||
this.computeButton.Name = "computeButton";
|
||||
this.computeButton.Size = new System.Drawing.Size(91, 23);
|
||||
this.computeButton.TabIndex = 5;
|
||||
this.computeButton.Text = "Compute!";
|
||||
this.computeButton.UseVisualStyleBackColor = true;
|
||||
this.computeButton.Click += new System.EventHandler(this.computeButton_Click);
|
||||
//
|
||||
// clearButton
|
||||
//
|
||||
this.clearButton.Location = new System.Drawing.Point(109, 329);
|
||||
this.clearButton.Name = "clearButton";
|
||||
this.clearButton.Size = new System.Drawing.Size(85, 23);
|
||||
this.clearButton.TabIndex = 6;
|
||||
this.clearButton.Text = "Clear";
|
||||
this.clearButton.UseVisualStyleBackColor = true;
|
||||
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.hexTextBox);
|
||||
this.groupBox1.Location = new System.Drawing.Point(10, 72);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(279, 54);
|
||||
this.groupBox1.TabIndex = 1;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Hexadecimal";
|
||||
//
|
||||
// hexTextBox
|
||||
//
|
||||
this.hexTextBox.AccessibleDescription = "";
|
||||
this.hexTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.hexTextBox.Name = "hexTextBox";
|
||||
this.hexTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.hexTextBox.TabIndex = 0;
|
||||
this.hexTextBox.Text = "0";
|
||||
this.hexTextBox.TextChanged += new System.EventHandler(this.hexTextBox_TextChanged);
|
||||
//
|
||||
// binaryGroupBox
|
||||
//
|
||||
this.binaryGroupBox.Controls.Add(this.binaryTextBox);
|
||||
this.binaryGroupBox.Location = new System.Drawing.Point(9, 12);
|
||||
this.binaryGroupBox.Name = "binaryGroupBox";
|
||||
this.binaryGroupBox.Size = new System.Drawing.Size(279, 54);
|
||||
this.binaryGroupBox.TabIndex = 0;
|
||||
this.binaryGroupBox.TabStop = false;
|
||||
this.binaryGroupBox.Text = "Binary";
|
||||
//
|
||||
// binaryTextBox
|
||||
//
|
||||
this.binaryTextBox.AccessibleDescription = "";
|
||||
this.binaryTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.binaryTextBox.Name = "binaryTextBox";
|
||||
this.binaryTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.binaryTextBox.TabIndex = 0;
|
||||
this.binaryTextBox.Text = "0";
|
||||
this.binaryTextBox.TextChanged += new System.EventHandler(this.binaryTextBox_TextChanged);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.decimalTextBox);
|
||||
this.groupBox2.Location = new System.Drawing.Point(10, 192);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(279, 54);
|
||||
this.groupBox2.TabIndex = 3;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Decimal";
|
||||
//
|
||||
// decimalTextBox
|
||||
//
|
||||
this.decimalTextBox.AccessibleDescription = "";
|
||||
this.decimalTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.decimalTextBox.Name = "decimalTextBox";
|
||||
this.decimalTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.decimalTextBox.TabIndex = 0;
|
||||
this.decimalTextBox.Text = "0";
|
||||
this.decimalTextBox.TextChanged += new System.EventHandler(this.decimalTextBox_TextChanged);
|
||||
//
|
||||
// exitButton
|
||||
//
|
||||
this.exitButton.Location = new System.Drawing.Point(200, 329);
|
||||
this.exitButton.Name = "exitButton";
|
||||
this.exitButton.Size = new System.Drawing.Size(91, 23);
|
||||
this.exitButton.TabIndex = 7;
|
||||
this.exitButton.Text = "Exit";
|
||||
this.exitButton.UseVisualStyleBackColor = true;
|
||||
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox3.Controls.Add(this.octalRadioButton);
|
||||
this.groupBox3.Controls.Add(this.decimalRadioButton);
|
||||
this.groupBox3.Controls.Add(this.hexRadioButton);
|
||||
this.groupBox3.Controls.Add(this.binaryRadioButton);
|
||||
this.groupBox3.Location = new System.Drawing.Point(12, 252);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(279, 52);
|
||||
this.groupBox3.TabIndex = 4;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Which Base would you like to convert from?";
|
||||
//
|
||||
// octalRadioButton
|
||||
//
|
||||
this.octalRadioButton.AutoSize = true;
|
||||
this.octalRadioButton.Location = new System.Drawing.Point(159, 19);
|
||||
this.octalRadioButton.Name = "octalRadioButton";
|
||||
this.octalRadioButton.Size = new System.Drawing.Size(50, 17);
|
||||
this.octalRadioButton.TabIndex = 3;
|
||||
this.octalRadioButton.TabStop = true;
|
||||
this.octalRadioButton.Text = "Octal";
|
||||
this.octalRadioButton.UseVisualStyleBackColor = true;
|
||||
this.octalRadioButton.CheckedChanged += new System.EventHandler(this.octalRadioButton_CheckedChanged);
|
||||
//
|
||||
// decimalRadioButton
|
||||
//
|
||||
this.decimalRadioButton.AutoSize = true;
|
||||
this.decimalRadioButton.Location = new System.Drawing.Point(215, 19);
|
||||
this.decimalRadioButton.Name = "decimalRadioButton";
|
||||
this.decimalRadioButton.Size = new System.Drawing.Size(63, 17);
|
||||
this.decimalRadioButton.TabIndex = 2;
|
||||
this.decimalRadioButton.TabStop = true;
|
||||
this.decimalRadioButton.Text = "Decimal";
|
||||
this.decimalRadioButton.UseVisualStyleBackColor = true;
|
||||
this.decimalRadioButton.CheckedChanged += new System.EventHandler(this.decimalRadioButton_CheckedChanged);
|
||||
//
|
||||
// hexRadioButton
|
||||
//
|
||||
this.hexRadioButton.AutoSize = true;
|
||||
this.hexRadioButton.Location = new System.Drawing.Point(67, 19);
|
||||
this.hexRadioButton.Name = "hexRadioButton";
|
||||
this.hexRadioButton.Size = new System.Drawing.Size(86, 17);
|
||||
this.hexRadioButton.TabIndex = 1;
|
||||
this.hexRadioButton.TabStop = true;
|
||||
this.hexRadioButton.Text = "Hexadecimal";
|
||||
this.hexRadioButton.UseVisualStyleBackColor = true;
|
||||
this.hexRadioButton.CheckedChanged += new System.EventHandler(this.hexRadioButton_CheckedChanged);
|
||||
//
|
||||
// binaryRadioButton
|
||||
//
|
||||
this.binaryRadioButton.AutoSize = true;
|
||||
this.binaryRadioButton.Location = new System.Drawing.Point(7, 19);
|
||||
this.binaryRadioButton.Name = "binaryRadioButton";
|
||||
this.binaryRadioButton.Size = new System.Drawing.Size(54, 17);
|
||||
this.binaryRadioButton.TabIndex = 0;
|
||||
this.binaryRadioButton.TabStop = true;
|
||||
this.binaryRadioButton.Text = "Binary";
|
||||
this.binaryRadioButton.UseVisualStyleBackColor = true;
|
||||
this.binaryRadioButton.CheckedChanged += new System.EventHandler(this.binaryRadioButton_CheckedChanged);
|
||||
//
|
||||
// groupBox4
|
||||
//
|
||||
this.groupBox4.Controls.Add(this.octalTextBox);
|
||||
this.groupBox4.Location = new System.Drawing.Point(9, 132);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new System.Drawing.Size(279, 54);
|
||||
this.groupBox4.TabIndex = 2;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "Octal";
|
||||
//
|
||||
// octalTextBox
|
||||
//
|
||||
this.octalTextBox.AccessibleDescription = "";
|
||||
this.octalTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.octalTextBox.Name = "octalTextBox";
|
||||
this.octalTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.octalTextBox.TabIndex = 0;
|
||||
this.octalTextBox.Text = "0";
|
||||
this.octalTextBox.TextChanged += new System.EventHandler(this.octalTextBox_TextChanged);
|
||||
//
|
||||
// autoCompute
|
||||
//
|
||||
this.autoCompute.AutoSize = true;
|
||||
this.autoCompute.Location = new System.Drawing.Point(16, 310);
|
||||
this.autoCompute.Name = "autoCompute";
|
||||
this.autoCompute.Size = new System.Drawing.Size(138, 17);
|
||||
this.autoCompute.TabIndex = 8;
|
||||
this.autoCompute.Text = "Automatically compute?";
|
||||
this.autoCompute.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// autoComputeToolTip
|
||||
//
|
||||
this.autoComputeToolTip.IsBalloon = true;
|
||||
//
|
||||
// paddingToggle
|
||||
//
|
||||
this.paddingToggle.AutoSize = true;
|
||||
this.paddingToggle.Location = new System.Drawing.Point(6, 19);
|
||||
this.paddingToggle.Name = "paddingToggle";
|
||||
this.paddingToggle.Size = new System.Drawing.Size(81, 17);
|
||||
this.paddingToggle.TabIndex = 9;
|
||||
this.paddingToggle.Text = "Pad Zeros?";
|
||||
this.paddingToggle.UseVisualStyleBackColor = true;
|
||||
this.paddingToggle.CheckedChanged += new System.EventHandler(this.paddingToggle_CheckedChanged);
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.label1);
|
||||
this.groupBox5.Controls.Add(this.paddingOffsetTextBox);
|
||||
this.groupBox5.Controls.Add(this.paddingToggle);
|
||||
this.groupBox5.Location = new System.Drawing.Point(295, 13);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(89, 88);
|
||||
this.groupBox5.TabIndex = 10;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Padding";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(7, 39);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(76, 14);
|
||||
this.label1.TabIndex = 11;
|
||||
this.label1.Text = "Padding offset";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// paddingOffsetTextBox
|
||||
//
|
||||
this.paddingOffsetTextBox.Location = new System.Drawing.Point(7, 59);
|
||||
this.paddingOffsetTextBox.Name = "paddingOffsetTextBox";
|
||||
this.paddingOffsetTextBox.ReadOnly = true;
|
||||
this.paddingOffsetTextBox.Size = new System.Drawing.Size(76, 20);
|
||||
this.paddingOffsetTextBox.TabIndex = 10;
|
||||
this.paddingOffsetTextBox.Text = "8";
|
||||
this.paddingOffsetTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.label2);
|
||||
this.groupBox6.Controls.Add(this.spacingOffsetTextBox);
|
||||
this.groupBox6.Controls.Add(this.spacingToggle);
|
||||
this.groupBox6.Location = new System.Drawing.Point(295, 107);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(89, 88);
|
||||
this.groupBox6.TabIndex = 12;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "Spacing";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label2.Location = new System.Drawing.Point(7, 39);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(76, 14);
|
||||
this.label2.TabIndex = 11;
|
||||
this.label2.Text = "Spacing offset";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// spacingOffsetTextBox
|
||||
//
|
||||
this.spacingOffsetTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.spacingOffsetTextBox.Location = new System.Drawing.Point(7, 59);
|
||||
this.spacingOffsetTextBox.Name = "spacingOffsetTextBox";
|
||||
this.spacingOffsetTextBox.ReadOnly = true;
|
||||
this.spacingOffsetTextBox.Size = new System.Drawing.Size(76, 20);
|
||||
this.spacingOffsetTextBox.TabIndex = 10;
|
||||
this.spacingOffsetTextBox.Text = "4";
|
||||
this.spacingOffsetTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// spacingToggle
|
||||
//
|
||||
this.spacingToggle.AutoSize = true;
|
||||
this.spacingToggle.Location = new System.Drawing.Point(6, 19);
|
||||
this.spacingToggle.Name = "spacingToggle";
|
||||
this.spacingToggle.Size = new System.Drawing.Size(71, 17);
|
||||
this.spacingToggle.TabIndex = 9;
|
||||
this.spacingToggle.Text = "Spacing?";
|
||||
this.spacingToggle.UseVisualStyleBackColor = true;
|
||||
this.spacingToggle.CheckedChanged += new System.EventHandler(this.spacingToggle_CheckedChanged);
|
||||
//
|
||||
// debugLabel
|
||||
//
|
||||
this.debugLabel.AutoSize = true;
|
||||
this.debugLabel.Location = new System.Drawing.Point(160, 311);
|
||||
this.debugLabel.Name = "debugLabel";
|
||||
this.debugLabel.Size = new System.Drawing.Size(63, 13);
|
||||
this.debugLabel.TabIndex = 14;
|
||||
this.debugLabel.Text = "debugLabel";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(396, 364);
|
||||
this.Controls.Add(this.debugLabel);
|
||||
this.Controls.Add(this.groupBox6);
|
||||
this.Controls.Add(this.groupBox5);
|
||||
this.Controls.Add(this.autoCompute);
|
||||
this.Controls.Add(this.groupBox4);
|
||||
this.Controls.Add(this.groupBox3);
|
||||
this.Controls.Add(this.exitButton);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.binaryGroupBox);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.clearButton);
|
||||
this.Controls.Add(this.computeButton);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Base Converter - Caleb Fontenot";
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.binaryGroupBox.ResumeLayout(false);
|
||||
this.binaryGroupBox.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.groupBox3.PerformLayout();
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.groupBox4.PerformLayout();
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox5.PerformLayout();
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox6.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button computeButton;
|
||||
private System.Windows.Forms.Button clearButton;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.TextBox hexTextBox;
|
||||
private System.Windows.Forms.GroupBox binaryGroupBox;
|
||||
private System.Windows.Forms.TextBox binaryTextBox;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.TextBox decimalTextBox;
|
||||
private System.Windows.Forms.Button exitButton;
|
||||
private System.Windows.Forms.GroupBox groupBox3;
|
||||
private System.Windows.Forms.RadioButton decimalRadioButton;
|
||||
private System.Windows.Forms.RadioButton hexRadioButton;
|
||||
private System.Windows.Forms.RadioButton binaryRadioButton;
|
||||
private System.Windows.Forms.RadioButton octalRadioButton;
|
||||
private System.Windows.Forms.GroupBox groupBox4;
|
||||
private System.Windows.Forms.TextBox octalTextBox;
|
||||
private System.Windows.Forms.CheckBox autoCompute;
|
||||
private System.Windows.Forms.ToolTip autoComputeToolTip;
|
||||
private System.Windows.Forms.CheckBox paddingToggle;
|
||||
private System.Windows.Forms.GroupBox groupBox5;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox paddingOffsetTextBox;
|
||||
private System.Windows.Forms.GroupBox groupBox6;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox spacingOffsetTextBox;
|
||||
private System.Windows.Forms.CheckBox spacingToggle;
|
||||
private System.Windows.Forms.Label debugLabel;
|
||||
}
|
||||
}
|
||||
|
284
Backup/BaseConverter/Form1.cs
Executable file
284
Backup/BaseConverter/Form1.cs
Executable file
@@ -0,0 +1,284 @@
|
||||
/*
|
||||
Base-Converter - This file is a part of Base Converter
|
||||
Copyright (C) 2022 Caleb Fontenot <foley2431@gmail.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApplication1
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
ToolTip toolTip = new ToolTip();
|
||||
toolTip.SetToolTip(autoCompute, "Automatically computes input based on changes made to textbox contents.");
|
||||
|
||||
}
|
||||
|
||||
private void compute()
|
||||
{
|
||||
// Define variables
|
||||
long decimalNum = 0, hexNum = 0, binNum = 0, octalNum = 0;
|
||||
int paddingOffset = 0,spacingOffset = 0, i = 0;
|
||||
|
||||
try
|
||||
{ // Extract data from text boxes.
|
||||
decimalNum = long.Parse(decimalTextBox.Text);
|
||||
hexNum = Convert.ToInt64(hexTextBox.Text, 16);
|
||||
// Remove spacing from binaryTextBox before parsing it
|
||||
binaryTextBox.Text = binaryTextBox.Text.Replace(" ", "");
|
||||
binNum = Convert.ToInt64(binaryTextBox.Text, 2);
|
||||
octalNum = Convert.ToInt64(octalTextBox.Text, 8);
|
||||
paddingOffset = int.Parse(paddingOffsetTextBox.Text);
|
||||
spacingOffset = int.Parse(spacingOffsetTextBox.Text);
|
||||
}
|
||||
catch (Exception Ex)
|
||||
{
|
||||
clearTextboxes();
|
||||
MessageBox.Show("Invalid number entered into one of the textboxes!");
|
||||
}
|
||||
|
||||
// What does the user want us to convert from?
|
||||
if (decimalRadioButton.Checked)
|
||||
{
|
||||
// The decimal radio button is pressed.
|
||||
hexNum = decimalNum;
|
||||
binNum = decimalNum;
|
||||
octalNum = decimalNum;
|
||||
//Refocus the textbox when done.
|
||||
currentFocus("decimalTextBox");
|
||||
}
|
||||
if (octalRadioButton.Checked)
|
||||
{
|
||||
// The octal radio button is pressed.
|
||||
hexNum = octalNum;
|
||||
binNum = octalNum;
|
||||
decimalNum = octalNum;
|
||||
//Refocus the textbox when done.
|
||||
currentFocus("octalTextBox");
|
||||
|
||||
}
|
||||
if (hexRadioButton.Checked)
|
||||
{
|
||||
// The hexadecimal radio button is pressed.
|
||||
binNum = hexNum;
|
||||
decimalNum = hexNum;
|
||||
octalNum = hexNum;
|
||||
//Refocus the textbox when done.
|
||||
currentFocus("hexTextBox");
|
||||
}
|
||||
if (binaryRadioButton.Checked)
|
||||
{
|
||||
// The binary radio button is pressed.
|
||||
hexNum = binNum;
|
||||
decimalNum = binNum;
|
||||
octalNum = binNum;
|
||||
//Refocus the textbox when done.
|
||||
currentFocus("binaryTextBox");
|
||||
}
|
||||
// Print output
|
||||
if (paddingToggle.Checked) // Padding: Add Zeros to the beginning of the string
|
||||
{
|
||||
string binaryString = Convert.ToString(binNum, 2); // Define string to offset
|
||||
int binarySize = binaryString.Length; //count the length of the string.
|
||||
|
||||
if (paddingOffset > binarySize)
|
||||
{ // Is the decimal offset larger than the size of ths string?
|
||||
while (i != (paddingOffset - binarySize))
|
||||
{
|
||||
binaryString = "0" + binaryString;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
//debugLabel.Text = sender.GetType().ToString();
|
||||
binaryTextBox.Text = binaryString;
|
||||
}
|
||||
else
|
||||
{
|
||||
binaryTextBox.Text = Convert.ToString(binNum, 2);
|
||||
}
|
||||
try
|
||||
{
|
||||
if (spacingToggle.Checked)
|
||||
{
|
||||
string binaryString = binaryTextBox.Text; // Define string to offset
|
||||
int binarySize = binaryString.Length; //count the length of the string.
|
||||
i = binarySize;
|
||||
var builder = new StringBuilder(binaryString); // String builder
|
||||
while (i != 0)
|
||||
{
|
||||
if (!(i == binarySize)) // Get rid of trailing space
|
||||
{
|
||||
if (i % spacingOffset == 0) // If i mod spacingOffset equals zero, append a space to the offset specified by i.
|
||||
{
|
||||
builder.Insert(i, " ");
|
||||
}
|
||||
i--;
|
||||
}
|
||||
else
|
||||
{
|
||||
i--;
|
||||
}
|
||||
}
|
||||
binaryTextBox.Text = builder.ToString();
|
||||
builder = null; // null out builder when done
|
||||
//binaryTextBox.Text = binaryString;
|
||||
}
|
||||
} catch (Exception Ex) {
|
||||
MessageBox.Show("Divide by zero");
|
||||
}
|
||||
hexTextBox.Text = hexNum.ToString("X");
|
||||
octalTextBox.Text = Convert.ToString(octalNum, 8);
|
||||
decimalTextBox.Text = decimalNum.ToString();
|
||||
}
|
||||
private void currentFocus(string focusOn)
|
||||
{
|
||||
switch (focusOn)
|
||||
{
|
||||
case "binaryTextBox":
|
||||
binaryTextBox.Focus();
|
||||
break;
|
||||
case "hexTextBox":
|
||||
hexTextBox.Focus();
|
||||
break;
|
||||
case "octalTextBox":
|
||||
octalTextBox.Focus();
|
||||
break;
|
||||
case "decimalTextBox":
|
||||
decimalTextBox.Focus();
|
||||
break;
|
||||
default:
|
||||
this.Focus();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void clearTextboxes()
|
||||
{
|
||||
hexTextBox.Text = "0";
|
||||
binaryTextBox.Text = "0";
|
||||
octalTextBox.Text = "0";
|
||||
decimalTextBox.Text = "0";
|
||||
}
|
||||
|
||||
private void computeButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
compute();
|
||||
}
|
||||
|
||||
private void clearButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Clear the textboxes.
|
||||
clearTextboxes();
|
||||
|
||||
// Reset focus to the textbox that is currently selected to be converted to.
|
||||
if (decimalRadioButton.Checked)
|
||||
currentFocus("decimalTextBox");
|
||||
if (hexRadioButton.Checked)
|
||||
currentFocus("hexTextBox");
|
||||
if (binaryRadioButton.Checked)
|
||||
currentFocus("binaryTextBox");
|
||||
if (octalRadioButton.Checked)
|
||||
currentFocus("octalTextBox");
|
||||
}
|
||||
|
||||
private void exitButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void binaryRadioButton_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
currentFocus("binaryTextBox");
|
||||
}
|
||||
|
||||
private void hexRadioButton_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
currentFocus("hexTextBox");
|
||||
}
|
||||
|
||||
private void decimalRadioButton_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
currentFocus("decimalTextBox");
|
||||
}
|
||||
|
||||
private void octalRadioButton_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
currentFocus("octalTextBox");
|
||||
}
|
||||
|
||||
private void binaryTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
//debugLabel.Text = sender.GetType().ToString();
|
||||
if (autoCompute.Checked & (sender.GetType().ToString().Equals("System.Windows.Forms.TextBox")))
|
||||
compute();
|
||||
}
|
||||
|
||||
private void hexTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
//debugLabel.Text = sender.GetType().ToString();
|
||||
if (autoCompute.Checked & (sender.GetType().ToString().Equals("System.Windows.Forms.TextBox")))
|
||||
compute();
|
||||
}
|
||||
|
||||
private void octalTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
//debugLabel.Text = sender.GetType().ToString();
|
||||
if (autoCompute.Checked & (sender.GetType().ToString().Equals("System.Windows.Forms.TextBox")))
|
||||
compute();
|
||||
}
|
||||
|
||||
private void decimalTextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
//debugLabel.Text = sender.GetType().ToString();
|
||||
if (autoCompute.Checked & (sender.GetType().ToString().Equals("System.Windows.Forms.TextBox")))
|
||||
compute();
|
||||
}
|
||||
|
||||
private void paddingToggle_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (paddingToggle.Checked)
|
||||
{
|
||||
paddingOffsetTextBox.ReadOnly = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
paddingOffsetTextBox.ReadOnly = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void spacingToggle_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (spacingToggle.Checked)
|
||||
{
|
||||
spacingOffsetTextBox.ReadOnly = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
spacingOffsetTextBox.ReadOnly = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
123
Backup/BaseConverter/Form1.resx
Executable file
123
Backup/BaseConverter/Form1.resx
Executable file
@@ -0,0 +1,123 @@
|
||||
<?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.Runtime.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:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<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" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</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" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</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>
|
||||
<metadata name="autoComputeToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
39
Backup/BaseConverter/Program.cs
Executable file
39
Backup/BaseConverter/Program.cs
Executable file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
Base-Converter - This file is a part of Base Converter
|
||||
Copyright (C) 2022 Caleb Fontenot <foley2431@gmail.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApplication1
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
36
Backup/BaseConverter/Properties/AssemblyInfo.cs
Executable file
36
Backup/BaseConverter/Properties/AssemblyInfo.cs
Executable file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("WindowsFormsApplication1")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("WindowsFormsApplication1")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2022")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("ab9dd494-e4ab-41bc-af12-9e7cae73ee51")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
71
Backup/BaseConverter/Properties/Resources.Designer.cs
generated
Executable file
71
Backup/BaseConverter/Properties/Resources.Designer.cs
generated
Executable file
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.8761
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WindowsFormsApplication1.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.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>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </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("WindowsFormsApplication1.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
117
Backup/BaseConverter/Properties/Resources.resx
Executable file
117
Backup/BaseConverter/Properties/Resources.resx
Executable 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>
|
30
Backup/BaseConverter/Properties/Settings.Designer.cs
generated
Executable file
30
Backup/BaseConverter/Properties/Settings.Designer.cs
generated
Executable file
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.8761
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WindowsFormsApplication1.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
Backup/BaseConverter/Properties/Settings.settings
Executable file
7
Backup/BaseConverter/Properties/Settings.settings
Executable 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>
|
Reference in New Issue
Block a user