update 20241125

This commit is contained in:
Stefan Hutter
2024-11-24 19:38:37 +01:00
parent 6bdbc4173e
commit 341ea50f06
281 changed files with 14362 additions and 180 deletions

View File

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

48
Tools_StringCipher/Form1.Designer.cs generated Normal file
View File

@@ -0,0 +1,48 @@
namespace Tools_StringCipher
{
partial class Form1
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Vom Windows Form-Designer generierter Code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
}
#endregion
}
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Tools_StringCipher
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}

View File

@@ -0,0 +1,120 @@
<?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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Tools_StringCipher.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

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

View File

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

Binary file not shown.

View File

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

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,108 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace Tools_StringCipher
{
public static class StringCipher
{
// This constant is used to determine the keysize of the encryption algorithm in bits.
// We divide this by 8 within the code below to get the equivalent number of bytes.
private const int Keysize = 256;
// This constant determines the number of iterations for the password bytes generation function.
private const int DerivationIterations = 1000;
public static string Encrypt(string plainText, string passPhrase)
{
// Salt and IV is randomly generated each time, but is preprended to encrypted cipher text
// so that the same Salt and IV values can be used when decrypting.
var saltStringBytes = Generate256BitsOfRandomEntropy();
var ivStringBytes = Generate256BitsOfRandomEntropy();
var plainTextBytes = Encoding.UTF8.GetBytes(plainText);
using (var password = new Rfc2898DeriveBytes(passPhrase, saltStringBytes, DerivationIterations))
{
var keyBytes = password.GetBytes(Keysize / 8);
using (var symmetricKey = new RijndaelManaged())
{
symmetricKey.BlockSize = 256;
symmetricKey.Mode = CipherMode.CBC;
symmetricKey.Padding = PaddingMode.PKCS7;
using (var encryptor = symmetricKey.CreateEncryptor(keyBytes, ivStringBytes))
{
using (var memoryStream = new MemoryStream())
{
using (var cryptoStream = new CryptoStream(memoryStream, encryptor, CryptoStreamMode.Write))
{
cryptoStream.Write(plainTextBytes, 0, plainTextBytes.Length);
cryptoStream.FlushFinalBlock();
// Create the final bytes as a concatenation of the random salt bytes, the random iv bytes and the cipher bytes.
var cipherTextBytes = saltStringBytes;
cipherTextBytes = cipherTextBytes.Concat(ivStringBytes).ToArray();
cipherTextBytes = cipherTextBytes.Concat(memoryStream.ToArray()).ToArray();
memoryStream.Close();
cryptoStream.Close();
return Convert.ToBase64String(cipherTextBytes);
}
}
}
}
}
}
public static string Decrypt(string cipherText, string passPhrase)
{
// Get the complete stream of bytes that represent:
// [32 bytes of Salt] + [32 bytes of IV] + [n bytes of CipherText]
var cipherTextBytesWithSaltAndIv = Convert.FromBase64String(cipherText);
// Get the saltbytes by extracting the first 32 bytes from the supplied cipherText bytes.
var saltStringBytes = cipherTextBytesWithSaltAndIv.Take(Keysize / 8).ToArray();
// Get the IV bytes by extracting the next 32 bytes from the supplied cipherText bytes.
var ivStringBytes = cipherTextBytesWithSaltAndIv.Skip(Keysize / 8).Take(Keysize / 8).ToArray();
// Get the actual cipher text bytes by removing the first 64 bytes from the cipherText string.
var cipherTextBytes = cipherTextBytesWithSaltAndIv.Skip((Keysize / 8) * 2).Take(cipherTextBytesWithSaltAndIv.Length - ((Keysize / 8) * 2)).ToArray();
using (var password = new Rfc2898DeriveBytes(passPhrase, saltStringBytes, DerivationIterations))
{
var keyBytes = password.GetBytes(Keysize / 8);
using (var symmetricKey = new RijndaelManaged())
{
symmetricKey.BlockSize = 256;
symmetricKey.Mode = CipherMode.CBC;
symmetricKey.Padding = PaddingMode.PKCS7;
using (var decryptor = symmetricKey.CreateDecryptor(keyBytes, ivStringBytes))
{
using (var memoryStream = new MemoryStream(cipherTextBytes))
{
using (var cryptoStream = new CryptoStream(memoryStream, decryptor, CryptoStreamMode.Read))
using (var streamReader = new StreamReader(cryptoStream, Encoding.UTF8))
{
return streamReader.ReadToEnd();
}
}
}
}
}
}
private static byte[] Generate256BitsOfRandomEntropy()
{
var randomBytes = new byte[32]; // 32 Bytes will give us 256 bits.
using (var rngCsp = new RNGCryptoServiceProvider())
{
// Fill the array with cryptographically secure random bytes.
rngCsp.GetBytes(randomBytes);
}
return randomBytes;
}
}
internal class endecrypt
{
}
}

View File

@@ -0,0 +1,846 @@
/*
* Programmer: Hunter Johnson
* Name: Rich Text Editor
* Date: November 1, 2016
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Text;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using System.Windows.Forms;
using System.IO;
namespace Tools_StringCipher
{
public partial class frmEditor : Form
{
List<string> colorList = new List<string>(); // holds the System.Drawing.Color names
string filenamee; // file opened inside of RTB
const int MIDDLE = 382; // middle sum of RGB - max is 765
int sumRGB; // sum of the selected colors RGB
int pos, line, column; // for detecting line and column numbers
public frmEditor()
{
InitializeComponent();
}
private void frmEditor_Load(object sender, EventArgs e)
{
richTextBox1.AllowDrop = true; // to allow drag and drop to the RichTextBox
richTextBox1.AcceptsTab = true; // allow tab
richTextBox1.WordWrap = false; // disable word wrap on start
richTextBox1.ShortcutsEnabled = true; // allow shortcuts
richTextBox1.DetectUrls = true; // allow detect url
fontDialog1.ShowColor = true;
fontDialog1.ShowApply = true;
fontDialog1.ShowHelp = true;
colorDialog1.AllowFullOpen = true;
colorDialog1.AnyColor = true;
colorDialog1.SolidColorOnly = false;
colorDialog1.ShowHelp = true;
colorDialog1.AnyColor = true;
leftAlignStripButton.Checked = true;
centerAlignStripButton.Checked = false;
rightAlignStripButton.Checked = false;
boldStripButton3.Checked = false;
italicStripButton.Checked = false;
rightAlignStripButton.Checked = false;
bulletListStripButton.Checked = false;
wordWrapToolStripMenuItem.Image = null;
MinimizeBox = false;
MaximizeBox = false;
this.FormBorderStyle = FormBorderStyle.FixedSingle;
// fill zoomDropDownButton item list
zoomDropDownButton.DropDown.Items.Add("20%");
zoomDropDownButton.DropDown.Items.Add("50%");
zoomDropDownButton.DropDown.Items.Add("70%");
zoomDropDownButton.DropDown.Items.Add("100%");
zoomDropDownButton.DropDown.Items.Add("150%");
zoomDropDownButton.DropDown.Items.Add("200%");
zoomDropDownButton.DropDown.Items.Add("300%");
zoomDropDownButton.DropDown.Items.Add("400%");
zoomDropDownButton.DropDown.Items.Add("500%");
// fill font sizes in combo box
for (int i = 8; i < 80; i += 2)
{
fontSizeComboBox.Items.Add(i);
}
// fill colors in color drop down list
foreach (System.Reflection.PropertyInfo prop in typeof(Color).GetProperties())
{
if (prop.PropertyType.FullName == "System.Drawing.Color")
{
colorList.Add(prop.Name);
}
}
// fill the drop down items list
foreach(string color in colorList)
{
colorStripDropDownButton.DropDownItems.Add(color);
}
// fill BackColor for each color in the DropDownItems list
for (int i = 0; i < colorStripDropDownButton.DropDownItems.Count; i++)
{
// Create KnownColor object
KnownColor selectedColor;
selectedColor = (KnownColor)System.Enum.Parse(typeof(KnownColor), colorList[i]); // parse to a KnownColor
colorStripDropDownButton.DropDownItems[i].BackColor = Color.FromKnownColor(selectedColor); // set the BackColor to its appropriate list item
// Set the text color depending on if the barkground is darker or lighter
// create Color object
Color col = Color.FromName(colorList[i]);
// 255,255,255 = White and 0,0,0 = Black
// Max sum of RGB values is 765 -> (255 + 255 + 255)
// Middle sum of RGB values is 382 -> (765/2)
// Color is considered darker if its <= 382
// Color is considered lighter if its > 382
sumRGB = ConvertToRGB(col); // get the color objects sum of the RGB value
if (sumRGB <= MIDDLE) // Darker Background
{
colorStripDropDownButton.DropDownItems[i].ForeColor = Color.White; // set to White text
}
else if (sumRGB > MIDDLE) // Lighter Background
{
colorStripDropDownButton.DropDownItems[i].ForeColor = Color.Black; // set to Black text
}
}
// fill fonts in font combo box
InstalledFontCollection fonts = new InstalledFontCollection();
foreach (FontFamily family in fonts.Families)
{
fontStripComboBox.Items.Add(family.Name);
}
// determines the line and column numbers of mouse position on the richTextBox
int pos = richTextBox1.SelectionStart;
int line = richTextBox1.GetLineFromCharIndex(pos);
int column = richTextBox1.SelectionStart - richTextBox1.GetFirstCharIndexFromLine(line);
lineColumnStatusLabel.Text = "Line " + (line + 1) + ", Column " + (column + 1);
}
//******************************************************************************************************************************
// ConvertToRGB - Accepts a Color object as its parameter. Gets the RGB values of the object passed to it, calculates the sum. *
//******************************************************************************************************************************
private int ConvertToRGB(System.Drawing.Color c)
{
int r = c.R, // RED component value
g = c.G, // GREEN component value
b = c.B; // BLUE component value
int sum = 0;
// calculate sum of RGB
sum = r + g + b;
return sum;
}
private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.SelectAll(); // select all text
}
private void clearToolStripMenuItem_Click(object sender, EventArgs e)
{
// clear
richTextBox1.Clear();
}
private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Paste(); // paste text
}
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Copy(); // copy text
}
private void cutToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Cut(); // cut text
}
private void boldStripButton3_Click(object sender, EventArgs e)
{
if (boldStripButton3.Checked == false)
{
boldStripButton3.Checked = true; // BOLD is true
}
else if (boldStripButton3.Checked == true)
{
boldStripButton3.Checked = false; // BOLD is false
}
if (richTextBox1.SelectionFont == null)
{
return;
}
// create fontStyle object
FontStyle style = richTextBox1.SelectionFont.Style;
// determines the font style
if (richTextBox1.SelectionFont.Bold)
{
style &= ~FontStyle.Bold;
}
else
{
style |= FontStyle.Bold;
}
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont, style); // sets the font style
}
private void underlineStripButton_Click(object sender, EventArgs e)
{
if (underlineStripButton.Checked == false)
{
underlineStripButton.Checked = true; // UNDERLINE is active
}
else if (underlineStripButton.Checked == true)
{
underlineStripButton.Checked = false; // UNDERLINE is not active
}
if (richTextBox1.SelectionFont == null)
{
return;
}
// create fontStyle object
FontStyle style = richTextBox1.SelectionFont.Style;
// determines the font style
if (richTextBox1.SelectionFont.Underline)
{
style &= ~FontStyle.Underline;
}
else
{
style |= FontStyle.Underline;
}
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont, style); // sets the font style
}
private void italicStripButton_Click(object sender, EventArgs e)
{
if (italicStripButton.Checked == false)
{
italicStripButton.Checked = true; // ITALICS is active
}
else if (italicStripButton.Checked == true)
{
italicStripButton.Checked = false; // ITALICS is not active
}
if (richTextBox1.SelectionFont == null)
{
return;
}
// create fontStyle object
FontStyle style = richTextBox1.SelectionFont.Style;
// determines font style
if (richTextBox1.SelectionFont.Italic)
{
style &= ~FontStyle.Italic;
}
else
{
style |= FontStyle.Italic;
}
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont, style); // sets the font style
}
private void fontSizeComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
if (richTextBox1.SelectionFont == null)
{
return;
}
// sets the font size when changed
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont.FontFamily,Convert.ToInt32(fontSizeComboBox.Text),richTextBox1.SelectionFont.Style);
}
private void fontStripComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
if (richTextBox1.SelectionFont == null)
{
// sets the Font Family style
richTextBox1.SelectionFont = new Font(fontStripComboBox.Text, richTextBox1.Font.Size);
}
// sets the selected font famly style
richTextBox1.SelectionFont = new Font(fontStripComboBox.Text, richTextBox1.SelectionFont.Size);
}
private void saveStripButton_Click(object sender, EventArgs e)
{
try
{
saveFileDialog1.ShowDialog(); // show the dialog
string file;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
string filename = saveFileDialog1.FileName;
// save the contents of the rich text box
richTextBox1.SaveFile(filename, RichTextBoxStreamType.PlainText);
file = Path.GetFileName(filename); // get name of file
MessageBox.Show("File " + file + " was saved successfully.", "Save Successful", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message, "Error Information", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
private void openFileStripButton_Click(object sender, EventArgs e)
{
openFileDialog1.ShowDialog(); // show the dialog
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
filenamee = openFileDialog1.FileName;
// load the file into the richTextBox
richTextBox1.LoadFile(filenamee, RichTextBoxStreamType.PlainText); // loads it in regular text format
// richTextBox1.LoadFile(filename, RichTextBoxStreamType.RichText); // loads it in RTB format
}
}
private void colorStripDropDownButton_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
// creates a KnownColor object
KnownColor selectedColor;
selectedColor = (KnownColor)System.Enum.Parse(typeof(KnownColor), e.ClickedItem.Text); // converts it to a Color Structure
richTextBox1.SelectionColor = Color.FromKnownColor(selectedColor); // sets the selected color
}
private void richTextBox1_SelectionChanged(object sender, EventArgs e)
{
// highlight button border when buttons are true
if (richTextBox1.SelectionFont != null)
{
boldStripButton3.Checked = richTextBox1.SelectionFont.Bold;
italicStripButton.Checked = richTextBox1.SelectionFont.Italic;
underlineStripButton.Checked = richTextBox1.SelectionFont.Underline;
}
}
private void leftAlignStripButton_Click(object sender, EventArgs e)
{
// set properties
centerAlignStripButton.Checked = false;
rightAlignStripButton.Checked = false;
if(leftAlignStripButton.Checked == false)
{
leftAlignStripButton.Checked = true; // LEFT ALIGN is active
}
else if(leftAlignStripButton.Checked == true)
{
leftAlignStripButton.Checked = false; // LEFT ALIGN is not active
}
richTextBox1.SelectionAlignment = HorizontalAlignment.Left; // selects left alignment
}
private void centerAlignStripButton_Click(object sender, EventArgs e)
{
// set properties
leftAlignStripButton.Checked = false;
rightAlignStripButton.Checked = false;
if (centerAlignStripButton.Checked == false)
{
centerAlignStripButton.Checked = true; // CENTER ALIGN is active
}
else if (centerAlignStripButton.Checked == true)
{
centerAlignStripButton.Checked = false; // CENTER ALIGN is not active
}
richTextBox1.SelectionAlignment = HorizontalAlignment.Center; // selects center alignment
}
private void rightAlignStripButton_Click(object sender, EventArgs e)
{
// set properties
leftAlignStripButton.Checked = false;
centerAlignStripButton.Checked = false;
if (rightAlignStripButton.Checked == false)
{
rightAlignStripButton.Checked = true; // RIGHT ALIGN is active
}
else if (rightAlignStripButton.Checked == true)
{
rightAlignStripButton.Checked = false; // RIGHT ALIGN is not active
}
richTextBox1.SelectionAlignment = HorizontalAlignment.Right; // selects right alignment
}
private void bulletListStripButton_Click(object sender, EventArgs e)
{
if (bulletListStripButton.Checked == false)
{
bulletListStripButton.Checked = true;
richTextBox1.SelectionBullet = true; // BULLET LIST is active
}
else if (bulletListStripButton.Checked == true)
{
bulletListStripButton.Checked = false;
richTextBox1.SelectionBullet = false; // BULLET LIST is not active
}
}
private void increaseStripButton_Click(object sender, EventArgs e)
{
string fontSizeNum = fontSizeComboBox.Text; // variable to hold selected size
try
{
int size = Convert.ToInt32(fontSizeNum) + 1; // convert (fontSizeNum + 1)
if (richTextBox1.SelectionFont == null)
{
return;
}
// sets the updated font size
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont.FontFamily,size,richTextBox1.SelectionFont.Style);
fontSizeComboBox.Text = size.ToString(); // update font size
}
catch(Exception ex)
{
MessageBox.Show(ex.Message, "Error Information", MessageBoxButtons.OK, MessageBoxIcon.Warning); // show error message
}
}
private void decreaseStripButton_Click(object sender, EventArgs e)
{
string fontSizeNum = fontSizeComboBox.Text; // variable to hold selected size
try
{
int size = Convert.ToInt32(fontSizeNum) - 1; // convert (fontSizeNum - 1)
if (richTextBox1.SelectionFont == null)
{
return;
}
// sets the updated font size
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont.FontFamily,size,richTextBox1.SelectionFont.Style);
fontSizeComboBox.Text = size.ToString(); // update font size
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error Information", MessageBoxButtons.OK, MessageBoxIcon.Warning); // show error message
}
}
//*********************************************************************************************
// richTextBox1_DragEnter - Custom Event. Copies text being dragged into the richTextBox *
//*********************************************************************************************
private void richTextBox1_DragEnter(object sender, System.Windows.Forms.DragEventArgs e)
{
if (e.Data.GetDataPresent(DataFormats.Text))
e.Effect = DragDropEffects.Copy; // copies data to the RTB
else
e.Effect = DragDropEffects.None; // doesn't accept data into RTB
}
//***************************************************************************************************
// richTextBox1_DragEnter - Custom Event. Drops the copied text being dragged onto the richTextBox *
//***************************************************************************************************
private void richTextBox1_DragDrop(object sender,System.Windows.Forms.DragEventArgs e)
{
// variables
int i;
String s;
// Get start position to drop the text.
i = richTextBox1.SelectionStart;
s = richTextBox1.Text.Substring(i);
richTextBox1.Text = richTextBox1.Text.Substring(0, i);
// Drop the text on to the RichTextBox.
richTextBox1.Text += e.Data.GetData(DataFormats.Text).ToString();
richTextBox1.Text += s;
}
private void undoStripButton_Click(object sender, EventArgs e)
{
richTextBox1.Undo(); // undo move
}
private void redoStripButton_Click(object sender, EventArgs e)
{
richTextBox1.Redo(); // redo move
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close(); // close the form
}
private void undoToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Undo(); // undo move
}
private void redoToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Redo(); // redo move
}
private void cutToolStripMenuItem1_Click(object sender, EventArgs e)
{
richTextBox1.Cut(); // cut text
}
private void copyToolStripMenuItem1_Click(object sender, EventArgs e)
{
richTextBox1.Copy(); // copy text
}
private void pasteToolStripMenuItem1_Click(object sender, EventArgs e)
{
richTextBox1.Paste(); // paste text
}
private void selectAllToolStripMenuItem1_Click(object sender, EventArgs e)
{
richTextBox1.SelectAll(); // select all text
}
private void clearAllToolStripMenuItem_Click(object sender, EventArgs e)
{
// clear the rich text box
richTextBox1.Clear();
richTextBox1.Focus();
}
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
{
// delete selected text
richTextBox1.SelectedText = "";
richTextBox1.Focus();
}
private void OpenMenuItem_Click(object sender, EventArgs e)
{
//openFileDialog1.ShowDialog();
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
string fileinhalt = System.IO.File.ReadAllText(openFileDialog1.FileName);
string decrypted = StringCipher.Decrypt(fileinhalt,textBox1.Text);
richTextBox1.Text=decrypted;
// richTextBox1.LoadFile(openFileDialog1.FileName, RichTextBoxStreamType.PlainText);
// richTextBox1.LoadFile(openFileDialog1.FileName, RichTextBoxStreamType.RichText); // loads the file in RTB format
}
}
private void newMenuItem_Click(object sender, EventArgs e)
{
if (richTextBox1.Text != string.Empty) // RTB has contents - prompt user to save changes
{
// save changes message
DialogResult result = MessageBox.Show("Would you like to save your changes? Editor is not empty.", "Save Changes?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if(result == DialogResult.Yes)
{
// save the RTB contents if user selected yes
saveFileDialog1.ShowDialog(); // show the dialog
string file;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
string filename = saveFileDialog1.FileName;
// save the contents of the rich text box
string fileinhalt = System.IO.File.ReadAllText(filename);
string decrypted = StringCipher.Decrypt(fileinhalt,this.textBox1.Text);
//richTextBox1.SaveFile(filename, RichTextBoxStreamType.PlainText);
richTextBox1.Text = decrypted;
file = Path.GetFileName(filename); // get name of file
MessageBox.Show("File " + file + " was saved successfully.", "Save Successful", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
// finally - clear the contents of the RTB
richTextBox1.ResetText();
richTextBox1.Focus();
}
else if(result == DialogResult.No)
{
// clear the contents of the RTB
richTextBox1.ResetText();
richTextBox1.Focus();
}
}
else // RTB has no contents
{
// clear the contents of the RTB
richTextBox1.ResetText();
richTextBox1.Focus();
}
}
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{
//saveFileDialog1.ShowDialog(); // show the dialog
string file;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
string filename = saveFileDialog1.FileName;
string encrypted = StringCipher.Encrypt(richTextBox1.Text, this.textBox1.Text);
System.IO.File.WriteAllText(filename, encrypted);
// save the contents of the rich text box
//richTextBox1.SaveFile(filename, RichTextBoxStreamType.PlainText);
}
file = Path.GetFileName(filenamee); // get name of file
MessageBox.Show("File " + file + " was saved successfully.", "Save Successful", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void zoomDropDownButton_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
float zoomPercent = Convert.ToSingle(e.ClickedItem.Text.Trim('%')); // convert
richTextBox1.ZoomFactor = zoomPercent / 100; // set zoom factor
if(e.ClickedItem.Image == null)
{
// sets all the image properties to null - incase one is already selected beforehand
for (int i = 0; i < zoomDropDownButton.DropDownItems.Count; i++)
{
zoomDropDownButton.DropDownItems[i].Image = null;
}
// draw bmp in image property of selected item, while its active
Bitmap bmp = new Bitmap(5, 5);
using (Graphics gfx = Graphics.FromImage(bmp))
{
gfx.FillEllipse(Brushes.Black, 1, 1, 3, 3);
}
e.ClickedItem.Image = bmp; // draw ellipse in image property
}
else
{
e.ClickedItem.Image = null;
richTextBox1.ZoomFactor = 1.0f; // set back to NO ZOOM
}
}
private void uppercaseToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.SelectedText = richTextBox1.SelectedText.ToUpper(); // text to CAPS
}
private void lowercaseToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.SelectedText = richTextBox1.SelectedText.ToLower(); // text to lowercase
}
private void wordWrapToolStripMenuItem_Click(object sender, EventArgs e)
{
// draw bmp in image property of selected item, while its active
Bitmap bmp = new Bitmap(5, 5);
using (Graphics gfx = Graphics.FromImage(bmp))
{
gfx.FillEllipse(Brushes.Black, 1, 1, 3, 3);
}
if (richTextBox1.WordWrap == false)
{
richTextBox1.WordWrap = true; // WordWrap is active
wordWrapToolStripMenuItem.Image = bmp; // draw ellipse in image property
}
else if(richTextBox1.WordWrap == true)
{
richTextBox1.WordWrap = false; // WordWrap is not active
wordWrapToolStripMenuItem.Image = null; // clear image property
}
}
private void fontToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
fontDialog1.ShowDialog(); // show the Font Dialog
System.Drawing.Font oldFont = this.Font; // gets current font
if (fontDialog1.ShowDialog() == DialogResult.OK)
{
fontDialog1_Apply(richTextBox1, new System.EventArgs());
}
// set back to the recent font
else if (fontDialog1.ShowDialog() == DialogResult.Cancel)
{
// set current font back to the old font
this.Font = oldFont;
// sets the old font for the controls inside richTextBox1
foreach (Control containedControl in richTextBox1.Controls)
{
containedControl.Font = oldFont;
}
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message, "Error Information", MessageBoxButtons.OK, MessageBoxIcon.Warning); // error
}
}
private void fontDialog1_HelpRequest(object sender, EventArgs e)
{
// display HelpRequest message
MessageBox.Show("Please choose a font and any other attributes; then hit Apply and OK.", "Font Dialog Help Request", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void fontDialog1_Apply(object sender, EventArgs e)
{
fontDialog1.FontMustExist = true; // error if font doesn't exist
richTextBox1.Font = fontDialog1.Font; // set selected font (Includes: FontFamily, Size, and, Effect. No need to set them separately)
richTextBox1.ForeColor = fontDialog1.Color; // set selected font color
// sets the font for the controls inside richTextBox1
foreach (Control containedControl in richTextBox1.Controls)
{
containedControl.Font = fontDialog1.Font;
}
}
private void deleteStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.SelectedText = ""; // delete selected text
}
private void clearFormattingStripButton_Click(object sender, EventArgs e)
{
fontStripComboBox.Text = "Font Family";
fontSizeComboBox.Text = "Font Size";
string pureText = richTextBox1.Text; // get the current Plain Text
richTextBox1.Clear(); // clear RTB
richTextBox1.ForeColor = Color.Black; // ensure the text color is back to Black
richTextBox1.Font = default(Font); // set default font
richTextBox1.Text = pureText; // Set it back to its orginial text, added as plain text
rightAlignStripButton.Checked = false;
centerAlignStripButton.Checked = false;
leftAlignStripButton.Checked = true;
}
private void printDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
// draws the string onto the print document
e.Graphics.DrawString(richTextBox1.Text, richTextBox1.Font, Brushes.Black, 100, 20);
e.Graphics.PageUnit = GraphicsUnit.Inch;
}
private void printStripButton_Click(object sender, EventArgs e)
{
// printDialog associates with PrintDocument
printDialog.Document = printDocument;
if (printDialog.ShowDialog() == DialogResult.OK)
{
printDocument.Print(); // Print the document
}
}
private void printPreviewStripButton_Click(object sender, EventArgs e)
{
printPreviewDialog.Document = printDocument;
// Show PrintPreview Dialog
printPreviewDialog.ShowDialog();
}
private void printStripMenuItem_Click(object sender, EventArgs e)
{
// printDialog associates with PrintDocument
printDialog.Document = printDocument;
if (printDialog.ShowDialog() == DialogResult.OK)
{
printDocument.Print();
}
}
private void printPreviewStripMenuItem_Click(object sender, EventArgs e)
{
printPreviewDialog.Document = printDocument;
// Show PrintPreview Dialog
printPreviewDialog.ShowDialog();
}
private void colorDialog1_HelpRequest(object sender, EventArgs e)
{
// display HelpRequest message
MessageBox.Show("Please select a color by clicking it. This will change the text color.", "Color Dialog Help Request", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void colorOptionsToolStripMenuItem_Click(object sender, EventArgs e)
{
colorDialog1.ShowDialog();
if(colorDialog1.ShowDialog() == DialogResult.OK)
{
// set the selected color to the RTB's forecolor
richTextBox1.ForeColor = colorDialog1.Color;
}
}
//****************************************************************************************************************************************
// richTextBox1_KeyUp - Determines which key was released and gets the line and column numbers of the current cursor position in the RTB *
//****************************************************************************************************************************************
private void richTextBox1_KeyUp(object sender, KeyEventArgs e)
{
// determine key released
switch (e.KeyCode)
{
case Keys.Down:
pos = richTextBox1.SelectionStart; // get starting point
line = richTextBox1.GetLineFromCharIndex(pos); // get line number
column = richTextBox1.SelectionStart - richTextBox1.GetFirstCharIndexFromLine(line); // get column number
lineColumnStatusLabel.Text = "Line " + (line + 1) + ", Column " + (column + 1);
break;
case Keys.Right:
pos = richTextBox1.SelectionStart; // get starting point
line = richTextBox1.GetLineFromCharIndex(pos); // get line number
column = richTextBox1.SelectionStart - richTextBox1.GetFirstCharIndexFromLine(line); // get column number
lineColumnStatusLabel.Text = "Line " + (line + 1) + ", Column " + (column + 1);
break;
case Keys.Up:
pos = richTextBox1.SelectionStart; // get starting point
line = richTextBox1.GetLineFromCharIndex(pos); // get line number
column = richTextBox1.SelectionStart - richTextBox1.GetFirstCharIndexFromLine(line); // get column number
lineColumnStatusLabel.Text = "Line " + (line + 1) + ", Column " + (column + 1);
break;
case Keys.Left:
pos = richTextBox1.SelectionStart; // get starting point
line = richTextBox1.GetLineFromCharIndex(pos); // get line number
column = richTextBox1.SelectionStart - richTextBox1.GetFirstCharIndexFromLine(line); // get column number
lineColumnStatusLabel.Text = "Line " + (line + 1) + ", Column " + (column + 1);
break;
}
}
//****************************************************************************************************************************
// richTextBox1_MouseDown - Gets the line and column numbers of the cursor position in the RTB when the mouse clicks an area *
//****************************************************************************************************************************
private void richTextBox1_MouseDown(object sender, MouseEventArgs e)
{
int pos = richTextBox1.SelectionStart; // get starting point
int line = richTextBox1.GetLineFromCharIndex(pos); // get line number
int column = richTextBox1.SelectionStart - richTextBox1.GetFirstCharIndexFromLine(line); // get column number
lineColumnStatusLabel.Text = "Line " + (line + 1) + ", Column " + (column + 1);
}
}
}

946
Tools_StringCipher/frmEditor.designer.cs generated Normal file
View File

@@ -0,0 +1,946 @@
namespace Text_Editor
{
partial class frmEditor
{
/// <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();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmEditor));
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.richContextStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.deleteStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.clearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.panel2 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.saveStripButton = new System.Windows.Forms.ToolStripButton();
this.openFileStripButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator();
this.printStripButton = new System.Windows.Forms.ToolStripButton();
this.printPreviewStripButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.undoStripButton = new System.Windows.Forms.ToolStripButton();
this.redoStripButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.fontStripComboBox = new System.Windows.Forms.ToolStripComboBox();
this.fontSizeComboBox = new System.Windows.Forms.ToolStripComboBox();
this.increaseStripButton = new System.Windows.Forms.ToolStripButton();
this.decreaseStripButton = new System.Windows.Forms.ToolStripButton();
this.colorStripDropDownButton = new System.Windows.Forms.ToolStripDropDownButton();
this.changeCaseDropDownButton = new System.Windows.Forms.ToolStripDropDownButton();
this.lowercaseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.uppercaseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
this.clearFormattingStripButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.boldStripButton3 = new System.Windows.Forms.ToolStripButton();
this.italicStripButton = new System.Windows.Forms.ToolStripButton();
this.underlineStripButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.leftAlignStripButton = new System.Windows.Forms.ToolStripButton();
this.centerAlignStripButton = new System.Windows.Forms.ToolStripButton();
this.rightAlignStripButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.bulletListStripButton = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
this.zoomDropDownButton = new System.Windows.Forms.ToolStripDropDownButton();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.newMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.OpenMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator();
this.printStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.printPreviewStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.cutToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.copyToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.pasteToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.selectAllToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.clearAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.formatToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.wordWrapToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.fontToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.colorOptionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.printDialog = new System.Windows.Forms.PrintDialog();
this.fontDialog1 = new System.Windows.Forms.FontDialog();
this.printPreviewDialog = new System.Windows.Forms.PrintPreviewDialog();
this.printDocument = new System.Drawing.Printing.PrintDocument();
this.colorDialog1 = new System.Windows.Forms.ColorDialog();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.lineColumnStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.richTextBox2 = new System.Windows.Forms.RichTextBox();
this.richContextStrip.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
this.SuspendLayout();
//
// richTextBox1
//
this.richTextBox1.ContextMenuStrip = this.richContextStrip;
this.richTextBox1.Location = new System.Drawing.Point(12, 68);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(833, 258);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
this.richTextBox1.DragDrop += new System.Windows.Forms.DragEventHandler(this.richTextBox1_DragDrop);
this.richTextBox1.DragEnter += new System.Windows.Forms.DragEventHandler(this.richTextBox1_DragEnter);
this.richTextBox1.SelectionChanged += new System.EventHandler(this.richTextBox1_SelectionChanged);
this.richTextBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.richTextBox1_KeyUp);
this.richTextBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.richTextBox1_MouseDown);
//
// richContextStrip
//
this.richContextStrip.ImageScalingSize = new System.Drawing.Size(24, 24);
this.richContextStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.cutToolStripMenuItem,
this.copyToolStripMenuItem,
this.pasteToolStripMenuItem,
this.deleteStripMenuItem,
this.selectAllToolStripMenuItem,
this.clearToolStripMenuItem});
this.richContextStrip.Name = "richContextStrip";
this.richContextStrip.Size = new System.Drawing.Size(175, 184);
//
// cutToolStripMenuItem
//
this.cutToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripMenuItem.Image")));
this.cutToolStripMenuItem.Name = "cutToolStripMenuItem";
this.cutToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
this.cutToolStripMenuItem.Size = new System.Drawing.Size(174, 30);
this.cutToolStripMenuItem.Text = "Cut";
this.cutToolStripMenuItem.Click += new System.EventHandler(this.cutToolStripMenuItem_Click);
//
// copyToolStripMenuItem
//
this.copyToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripMenuItem.Image")));
this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
this.copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
this.copyToolStripMenuItem.Size = new System.Drawing.Size(174, 30);
this.copyToolStripMenuItem.Text = "Copy";
this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
//
// pasteToolStripMenuItem
//
this.pasteToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripMenuItem.Image")));
this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem";
this.pasteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
this.pasteToolStripMenuItem.Size = new System.Drawing.Size(174, 30);
this.pasteToolStripMenuItem.Text = "Paste";
this.pasteToolStripMenuItem.Click += new System.EventHandler(this.pasteToolStripMenuItem_Click);
//
// deleteStripMenuItem
//
this.deleteStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("deleteStripMenuItem.Image")));
this.deleteStripMenuItem.Name = "deleteStripMenuItem";
this.deleteStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Delete;
this.deleteStripMenuItem.Size = new System.Drawing.Size(174, 30);
this.deleteStripMenuItem.Text = "Delete";
this.deleteStripMenuItem.Click += new System.EventHandler(this.deleteStripMenuItem_Click);
//
// selectAllToolStripMenuItem
//
this.selectAllToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("selectAllToolStripMenuItem.Image")));
this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem";
this.selectAllToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(174, 30);
this.selectAllToolStripMenuItem.Text = "Select All";
this.selectAllToolStripMenuItem.Click += new System.EventHandler(this.selectAllToolStripMenuItem_Click);
//
// clearToolStripMenuItem
//
this.clearToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("clearToolStripMenuItem.Image")));
this.clearToolStripMenuItem.Name = "clearToolStripMenuItem";
this.clearToolStripMenuItem.Size = new System.Drawing.Size(174, 30);
this.clearToolStripMenuItem.Text = "Clear All";
this.clearToolStripMenuItem.Click += new System.EventHandler(this.clearToolStripMenuItem_Click);
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.DodgerBlue;
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 613);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(852, 5);
this.panel2.TabIndex = 15;
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.DodgerBlue;
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(852, 7);
this.panel1.TabIndex = 14;
//
// toolStrip1
//
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.saveStripButton,
this.openFileStripButton,
this.toolStripSeparator10,
this.printStripButton,
this.printPreviewStripButton,
this.toolStripSeparator5,
this.undoStripButton,
this.redoStripButton,
this.toolStripSeparator1,
this.fontStripComboBox,
this.fontSizeComboBox,
this.increaseStripButton,
this.decreaseStripButton,
this.colorStripDropDownButton,
this.changeCaseDropDownButton,
this.toolStripSeparator9,
this.clearFormattingStripButton,
this.toolStripSeparator2,
this.boldStripButton3,
this.italicStripButton,
this.underlineStripButton,
this.toolStripSeparator3,
this.leftAlignStripButton,
this.centerAlignStripButton,
this.rightAlignStripButton,
this.toolStripSeparator4,
this.bulletListStripButton,
this.toolStripSeparator8,
this.zoomDropDownButton});
this.toolStrip1.Location = new System.Drawing.Point(0, 31);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(852, 31);
this.toolStrip1.TabIndex = 16;
this.toolStrip1.Text = "toolStrip1";
this.toolStrip1.Visible = false;
//
// saveStripButton
//
this.saveStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.saveStripButton.Image = ((System.Drawing.Image)(resources.GetObject("saveStripButton.Image")));
this.saveStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.saveStripButton.Name = "saveStripButton";
this.saveStripButton.Size = new System.Drawing.Size(28, 28);
this.saveStripButton.Text = "Save File";
this.saveStripButton.Click += new System.EventHandler(this.saveStripButton_Click);
//
// openFileStripButton
//
this.openFileStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.openFileStripButton.Image = ((System.Drawing.Image)(resources.GetObject("openFileStripButton.Image")));
this.openFileStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.openFileStripButton.Name = "openFileStripButton";
this.openFileStripButton.Size = new System.Drawing.Size(28, 28);
this.openFileStripButton.Text = "Open File";
this.openFileStripButton.Click += new System.EventHandler(this.openFileStripButton_Click);
//
// toolStripSeparator10
//
this.toolStripSeparator10.Name = "toolStripSeparator10";
this.toolStripSeparator10.Size = new System.Drawing.Size(6, 31);
//
// printStripButton
//
this.printStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.printStripButton.Image = ((System.Drawing.Image)(resources.GetObject("printStripButton.Image")));
this.printStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.printStripButton.Name = "printStripButton";
this.printStripButton.Size = new System.Drawing.Size(28, 28);
this.printStripButton.Text = "Print Page";
this.printStripButton.Click += new System.EventHandler(this.printStripButton_Click);
//
// printPreviewStripButton
//
this.printPreviewStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.printPreviewStripButton.Image = ((System.Drawing.Image)(resources.GetObject("printPreviewStripButton.Image")));
this.printPreviewStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.printPreviewStripButton.Name = "printPreviewStripButton";
this.printPreviewStripButton.Size = new System.Drawing.Size(28, 28);
this.printPreviewStripButton.Text = "Print Preview";
this.printPreviewStripButton.Click += new System.EventHandler(this.printPreviewStripButton_Click);
//
// toolStripSeparator5
//
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(6, 31);
//
// undoStripButton
//
this.undoStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.undoStripButton.Image = ((System.Drawing.Image)(resources.GetObject("undoStripButton.Image")));
this.undoStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.undoStripButton.Name = "undoStripButton";
this.undoStripButton.Size = new System.Drawing.Size(28, 28);
this.undoStripButton.Text = "Undo Move";
this.undoStripButton.Click += new System.EventHandler(this.undoStripButton_Click);
//
// redoStripButton
//
this.redoStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.redoStripButton.Image = ((System.Drawing.Image)(resources.GetObject("redoStripButton.Image")));
this.redoStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.redoStripButton.Name = "redoStripButton";
this.redoStripButton.Size = new System.Drawing.Size(28, 28);
this.redoStripButton.Text = "Redo Move";
this.redoStripButton.Click += new System.EventHandler(this.redoStripButton_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31);
//
// fontStripComboBox
//
this.fontStripComboBox.Name = "fontStripComboBox";
this.fontStripComboBox.Size = new System.Drawing.Size(155, 31);
this.fontStripComboBox.Sorted = true;
this.fontStripComboBox.Text = "Font Family";
this.fontStripComboBox.ToolTipText = "Font Family";
this.fontStripComboBox.SelectedIndexChanged += new System.EventHandler(this.fontStripComboBox_SelectedIndexChanged);
//
// fontSizeComboBox
//
this.fontSizeComboBox.AutoSize = false;
this.fontSizeComboBox.Name = "fontSizeComboBox";
this.fontSizeComboBox.Size = new System.Drawing.Size(73, 23);
this.fontSizeComboBox.Text = "Font Size";
this.fontSizeComboBox.ToolTipText = "Font Size";
this.fontSizeComboBox.SelectedIndexChanged += new System.EventHandler(this.fontSizeComboBox_SelectedIndexChanged);
//
// increaseStripButton
//
this.increaseStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.increaseStripButton.Image = ((System.Drawing.Image)(resources.GetObject("increaseStripButton.Image")));
this.increaseStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.increaseStripButton.Name = "increaseStripButton";
this.increaseStripButton.Size = new System.Drawing.Size(28, 28);
this.increaseStripButton.Text = "Increase Font Size";
this.increaseStripButton.Click += new System.EventHandler(this.increaseStripButton_Click);
//
// decreaseStripButton
//
this.decreaseStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.decreaseStripButton.Image = ((System.Drawing.Image)(resources.GetObject("decreaseStripButton.Image")));
this.decreaseStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.decreaseStripButton.Name = "decreaseStripButton";
this.decreaseStripButton.Size = new System.Drawing.Size(28, 28);
this.decreaseStripButton.Text = "Decrease Font Size";
this.decreaseStripButton.Click += new System.EventHandler(this.decreaseStripButton_Click);
//
// colorStripDropDownButton
//
this.colorStripDropDownButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.colorStripDropDownButton.Image = ((System.Drawing.Image)(resources.GetObject("colorStripDropDownButton.Image")));
this.colorStripDropDownButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.colorStripDropDownButton.Name = "colorStripDropDownButton";
this.colorStripDropDownButton.Size = new System.Drawing.Size(37, 28);
this.colorStripDropDownButton.Text = "Font Color";
this.colorStripDropDownButton.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.colorStripDropDownButton_DropDownItemClicked);
//
// changeCaseDropDownButton
//
this.changeCaseDropDownButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.changeCaseDropDownButton.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lowercaseToolStripMenuItem,
this.uppercaseToolStripMenuItem});
this.changeCaseDropDownButton.Image = ((System.Drawing.Image)(resources.GetObject("changeCaseDropDownButton.Image")));
this.changeCaseDropDownButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.changeCaseDropDownButton.Name = "changeCaseDropDownButton";
this.changeCaseDropDownButton.Size = new System.Drawing.Size(37, 28);
this.changeCaseDropDownButton.Text = "Change Case";
//
// lowercaseToolStripMenuItem
//
this.lowercaseToolStripMenuItem.Name = "lowercaseToolStripMenuItem";
this.lowercaseToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
this.lowercaseToolStripMenuItem.Text = "&lowercase";
this.lowercaseToolStripMenuItem.Click += new System.EventHandler(this.lowercaseToolStripMenuItem_Click);
//
// uppercaseToolStripMenuItem
//
this.uppercaseToolStripMenuItem.Name = "uppercaseToolStripMenuItem";
this.uppercaseToolStripMenuItem.Size = new System.Drawing.Size(137, 22);
this.uppercaseToolStripMenuItem.Text = "&UPPERCASE";
this.uppercaseToolStripMenuItem.Click += new System.EventHandler(this.uppercaseToolStripMenuItem_Click);
//
// toolStripSeparator9
//
this.toolStripSeparator9.Name = "toolStripSeparator9";
this.toolStripSeparator9.Size = new System.Drawing.Size(6, 31);
//
// clearFormattingStripButton
//
this.clearFormattingStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.clearFormattingStripButton.Image = ((System.Drawing.Image)(resources.GetObject("clearFormattingStripButton.Image")));
this.clearFormattingStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.clearFormattingStripButton.Name = "clearFormattingStripButton";
this.clearFormattingStripButton.Size = new System.Drawing.Size(28, 28);
this.clearFormattingStripButton.Text = "Clear All Formatting";
this.clearFormattingStripButton.Click += new System.EventHandler(this.clearFormattingStripButton_Click);
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(6, 31);
//
// boldStripButton3
//
this.boldStripButton3.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.boldStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("boldStripButton3.Image")));
this.boldStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
this.boldStripButton3.Name = "boldStripButton3";
this.boldStripButton3.Size = new System.Drawing.Size(28, 28);
this.boldStripButton3.Text = "Bold";
this.boldStripButton3.Click += new System.EventHandler(this.boldStripButton3_Click);
//
// italicStripButton
//
this.italicStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.italicStripButton.Image = ((System.Drawing.Image)(resources.GetObject("italicStripButton.Image")));
this.italicStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.italicStripButton.Name = "italicStripButton";
this.italicStripButton.Size = new System.Drawing.Size(28, 28);
this.italicStripButton.Text = "Italics";
this.italicStripButton.Click += new System.EventHandler(this.italicStripButton_Click);
//
// underlineStripButton
//
this.underlineStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.underlineStripButton.Image = ((System.Drawing.Image)(resources.GetObject("underlineStripButton.Image")));
this.underlineStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.underlineStripButton.Name = "underlineStripButton";
this.underlineStripButton.Size = new System.Drawing.Size(28, 28);
this.underlineStripButton.Text = "Underline";
this.underlineStripButton.Click += new System.EventHandler(this.underlineStripButton_Click);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 31);
//
// leftAlignStripButton
//
this.leftAlignStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.leftAlignStripButton.Image = ((System.Drawing.Image)(resources.GetObject("leftAlignStripButton.Image")));
this.leftAlignStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.leftAlignStripButton.Name = "leftAlignStripButton";
this.leftAlignStripButton.Size = new System.Drawing.Size(28, 28);
this.leftAlignStripButton.Text = "Left Align";
this.leftAlignStripButton.Click += new System.EventHandler(this.leftAlignStripButton_Click);
//
// centerAlignStripButton
//
this.centerAlignStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.centerAlignStripButton.Image = ((System.Drawing.Image)(resources.GetObject("centerAlignStripButton.Image")));
this.centerAlignStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.centerAlignStripButton.Name = "centerAlignStripButton";
this.centerAlignStripButton.Size = new System.Drawing.Size(28, 28);
this.centerAlignStripButton.Text = "Center Align";
this.centerAlignStripButton.Click += new System.EventHandler(this.centerAlignStripButton_Click);
//
// rightAlignStripButton
//
this.rightAlignStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.rightAlignStripButton.Image = ((System.Drawing.Image)(resources.GetObject("rightAlignStripButton.Image")));
this.rightAlignStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.rightAlignStripButton.Name = "rightAlignStripButton";
this.rightAlignStripButton.Size = new System.Drawing.Size(28, 28);
this.rightAlignStripButton.Text = "Right Align";
this.rightAlignStripButton.Click += new System.EventHandler(this.rightAlignStripButton_Click);
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 31);
//
// bulletListStripButton
//
this.bulletListStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.bulletListStripButton.Image = ((System.Drawing.Image)(resources.GetObject("bulletListStripButton.Image")));
this.bulletListStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.bulletListStripButton.Name = "bulletListStripButton";
this.bulletListStripButton.Size = new System.Drawing.Size(28, 28);
this.bulletListStripButton.Text = "Bullet List";
this.bulletListStripButton.Click += new System.EventHandler(this.bulletListStripButton_Click);
//
// toolStripSeparator8
//
this.toolStripSeparator8.Name = "toolStripSeparator8";
this.toolStripSeparator8.Size = new System.Drawing.Size(6, 31);
//
// zoomDropDownButton
//
this.zoomDropDownButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.zoomDropDownButton.Image = ((System.Drawing.Image)(resources.GetObject("zoomDropDownButton.Image")));
this.zoomDropDownButton.ImageTransparentColor = System.Drawing.Color.Magenta;
this.zoomDropDownButton.Name = "zoomDropDownButton";
this.zoomDropDownButton.Size = new System.Drawing.Size(37, 28);
this.zoomDropDownButton.Text = "Zoom Factor";
this.zoomDropDownButton.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.zoomDropDownButton_DropDownItemClicked);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// menuStrip1
//
this.menuStrip1.BackColor = System.Drawing.Color.White;
this.menuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.editToolStripMenuItem,
this.formatToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 7);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Padding = new System.Windows.Forms.Padding(4, 1, 0, 1);
this.menuStrip1.Size = new System.Drawing.Size(852, 24);
this.menuStrip1.TabIndex = 17;
this.menuStrip1.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.newMenuItem,
this.toolStripMenuItem1,
this.OpenMenuItem,
this.toolStripMenuItem2,
this.saveToolStripMenuItem,
this.toolStripSeparator11,
this.printStripMenuItem,
this.printPreviewStripMenuItem,
this.toolStripSeparator7,
this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 22);
this.fileToolStripMenuItem.Text = "&File";
//
// newMenuItem
//
this.newMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newMenuItem.Image")));
this.newMenuItem.Name = "newMenuItem";
this.newMenuItem.Size = new System.Drawing.Size(188, 30);
this.newMenuItem.Text = "&New";
this.newMenuItem.Visible = false;
this.newMenuItem.Click += new System.EventHandler(this.newMenuItem_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem1.Image")));
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(188, 30);
this.toolStripMenuItem1.Text = "&Open";
this.toolStripMenuItem1.Visible = false;
//
// OpenMenuItem
//
this.OpenMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("OpenMenuItem.Image")));
this.OpenMenuItem.Name = "OpenMenuItem";
this.OpenMenuItem.Size = new System.Drawing.Size(188, 30);
this.OpenMenuItem.Text = "&Open";
this.OpenMenuItem.Click += new System.EventHandler(this.OpenMenuItem_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripMenuItem2.Image")));
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
this.toolStripMenuItem2.Size = new System.Drawing.Size(188, 30);
this.toolStripMenuItem2.Text = "&Save";
this.toolStripMenuItem2.Visible = false;
//
// saveToolStripMenuItem
//
this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image")));
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
this.saveToolStripMenuItem.Size = new System.Drawing.Size(188, 30);
this.saveToolStripMenuItem.Text = "&Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
//
// toolStripSeparator11
//
this.toolStripSeparator11.Name = "toolStripSeparator11";
this.toolStripSeparator11.Size = new System.Drawing.Size(185, 6);
//
// printStripMenuItem
//
this.printStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printStripMenuItem.Image")));
this.printStripMenuItem.Name = "printStripMenuItem";
this.printStripMenuItem.Size = new System.Drawing.Size(188, 30);
this.printStripMenuItem.Text = "&Print";
this.printStripMenuItem.Visible = false;
this.printStripMenuItem.Click += new System.EventHandler(this.printStripMenuItem_Click);
//
// printPreviewStripMenuItem
//
this.printPreviewStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printPreviewStripMenuItem.Image")));
this.printPreviewStripMenuItem.Name = "printPreviewStripMenuItem";
this.printPreviewStripMenuItem.Size = new System.Drawing.Size(188, 30);
this.printPreviewStripMenuItem.Text = "P&rint Preview";
this.printPreviewStripMenuItem.Visible = false;
this.printPreviewStripMenuItem.Click += new System.EventHandler(this.printPreviewStripMenuItem_Click);
//
// toolStripSeparator7
//
this.toolStripSeparator7.Name = "toolStripSeparator7";
this.toolStripSeparator7.Size = new System.Drawing.Size(185, 6);
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("exitToolStripMenuItem.Image")));
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4)));
this.exitToolStripMenuItem.Size = new System.Drawing.Size(188, 30);
this.exitToolStripMenuItem.Text = "E&xit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
//
// editToolStripMenuItem
//
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.undoToolStripMenuItem,
this.redoToolStripMenuItem,
this.toolStripSeparator6,
this.cutToolStripMenuItem1,
this.copyToolStripMenuItem1,
this.pasteToolStripMenuItem1,
this.deleteToolStripMenuItem,
this.selectAllToolStripMenuItem1,
this.clearAllToolStripMenuItem});
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 22);
this.editToolStripMenuItem.Text = "&Edit";
this.editToolStripMenuItem.Visible = false;
//
// undoToolStripMenuItem
//
this.undoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("undoToolStripMenuItem.Image")));
this.undoToolStripMenuItem.Name = "undoToolStripMenuItem";
this.undoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
this.undoToolStripMenuItem.Size = new System.Drawing.Size(166, 22);
this.undoToolStripMenuItem.Text = "&Undo";
this.undoToolStripMenuItem.Click += new System.EventHandler(this.undoToolStripMenuItem_Click);
//
// redoToolStripMenuItem
//
this.redoToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("redoToolStripMenuItem.Image")));
this.redoToolStripMenuItem.Name = "redoToolStripMenuItem";
this.redoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y)));
this.redoToolStripMenuItem.Size = new System.Drawing.Size(166, 22);
this.redoToolStripMenuItem.Text = "&Redo";
this.redoToolStripMenuItem.Click += new System.EventHandler(this.redoToolStripMenuItem_Click);
//
// toolStripSeparator6
//
this.toolStripSeparator6.Name = "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(163, 6);
//
// cutToolStripMenuItem1
//
this.cutToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripMenuItem1.Image")));
this.cutToolStripMenuItem1.Name = "cutToolStripMenuItem1";
this.cutToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
this.cutToolStripMenuItem1.Size = new System.Drawing.Size(166, 22);
this.cutToolStripMenuItem1.Text = "&Cut";
this.cutToolStripMenuItem1.Click += new System.EventHandler(this.cutToolStripMenuItem1_Click);
//
// copyToolStripMenuItem1
//
this.copyToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripMenuItem1.Image")));
this.copyToolStripMenuItem1.Name = "copyToolStripMenuItem1";
this.copyToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
this.copyToolStripMenuItem1.Size = new System.Drawing.Size(166, 22);
this.copyToolStripMenuItem1.Text = "C&opy";
this.copyToolStripMenuItem1.Click += new System.EventHandler(this.copyToolStripMenuItem1_Click);
//
// pasteToolStripMenuItem1
//
this.pasteToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripMenuItem1.Image")));
this.pasteToolStripMenuItem1.Name = "pasteToolStripMenuItem1";
this.pasteToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
this.pasteToolStripMenuItem1.Size = new System.Drawing.Size(166, 22);
this.pasteToolStripMenuItem1.Text = "&Paste";
this.pasteToolStripMenuItem1.Click += new System.EventHandler(this.pasteToolStripMenuItem1_Click);
//
// deleteToolStripMenuItem
//
this.deleteToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("deleteToolStripMenuItem.Image")));
this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
this.deleteToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Delete;
this.deleteToolStripMenuItem.Size = new System.Drawing.Size(166, 22);
this.deleteToolStripMenuItem.Text = "&Delete";
this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
//
// selectAllToolStripMenuItem1
//
this.selectAllToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("selectAllToolStripMenuItem1.Image")));
this.selectAllToolStripMenuItem1.Name = "selectAllToolStripMenuItem1";
this.selectAllToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
this.selectAllToolStripMenuItem1.Size = new System.Drawing.Size(166, 22);
this.selectAllToolStripMenuItem1.Text = "&Select All";
this.selectAllToolStripMenuItem1.Click += new System.EventHandler(this.selectAllToolStripMenuItem1_Click);
//
// clearAllToolStripMenuItem
//
this.clearAllToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("clearAllToolStripMenuItem.Image")));
this.clearAllToolStripMenuItem.Name = "clearAllToolStripMenuItem";
this.clearAllToolStripMenuItem.Size = new System.Drawing.Size(166, 22);
this.clearAllToolStripMenuItem.Text = "C&lear All";
this.clearAllToolStripMenuItem.Click += new System.EventHandler(this.clearAllToolStripMenuItem_Click);
//
// formatToolStripMenuItem
//
this.formatToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.wordWrapToolStripMenuItem,
this.fontToolStripMenuItem,
this.colorOptionsToolStripMenuItem});
this.formatToolStripMenuItem.Name = "formatToolStripMenuItem";
this.formatToolStripMenuItem.Size = new System.Drawing.Size(57, 22);
this.formatToolStripMenuItem.Text = "Fo&rmat";
this.formatToolStripMenuItem.Visible = false;
//
// wordWrapToolStripMenuItem
//
this.wordWrapToolStripMenuItem.Name = "wordWrapToolStripMenuItem";
this.wordWrapToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
this.wordWrapToolStripMenuItem.Text = "&WordWrap";
this.wordWrapToolStripMenuItem.Click += new System.EventHandler(this.wordWrapToolStripMenuItem_Click);
//
// fontToolStripMenuItem
//
this.fontToolStripMenuItem.Name = "fontToolStripMenuItem";
this.fontToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
this.fontToolStripMenuItem.Text = "&Font...";
this.fontToolStripMenuItem.Click += new System.EventHandler(this.fontToolStripMenuItem_Click);
//
// colorOptionsToolStripMenuItem
//
this.colorOptionsToolStripMenuItem.Name = "colorOptionsToolStripMenuItem";
this.colorOptionsToolStripMenuItem.Size = new System.Drawing.Size(148, 22);
this.colorOptionsToolStripMenuItem.Text = "&Color Options";
this.colorOptionsToolStripMenuItem.Click += new System.EventHandler(this.colorOptionsToolStripMenuItem_Click);
//
// printDialog
//
this.printDialog.UseEXDialog = true;
//
// fontDialog1
//
this.fontDialog1.Apply += new System.EventHandler(this.fontDialog1_Apply);
this.fontDialog1.HelpRequest += new System.EventHandler(this.fontDialog1_HelpRequest);
//
// printPreviewDialog
//
this.printPreviewDialog.AutoScrollMargin = new System.Drawing.Size(0, 0);
this.printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);
this.printPreviewDialog.ClientSize = new System.Drawing.Size(400, 300);
this.printPreviewDialog.Enabled = true;
this.printPreviewDialog.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog.Icon")));
this.printPreviewDialog.Name = "printPreviewDialog";
this.printPreviewDialog.Visible = false;
//
// printDocument
//
this.printDocument.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument_PrintPage);
//
// colorDialog1
//
this.colorDialog1.HelpRequest += new System.EventHandler(this.colorDialog1_HelpRequest);
//
// statusStrip1
//
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.lineColumnStatusLabel});
this.statusStrip1.Location = new System.Drawing.Point(0, 591);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(852, 22);
this.statusStrip1.TabIndex = 19;
this.statusStrip1.Text = "statusStrip1";
//
// lineColumnStatusLabel
//
this.lineColumnStatusLabel.Name = "lineColumnStatusLabel";
this.lineColumnStatusLabel.Size = new System.Drawing.Size(837, 17);
this.lineColumnStatusLabel.Spring = true;
this.lineColumnStatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(81, 42);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(597, 20);
this.textBox1.TabIndex = 20;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 45);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(62, 13);
this.label1.TabIndex = 21;
this.label1.Text = "Passphrase";
//
// richTextBox2
//
this.richTextBox2.ContextMenuStrip = this.richContextStrip;
this.richTextBox2.Location = new System.Drawing.Point(12, 396);
this.richTextBox2.Name = "richTextBox2";
this.richTextBox2.Size = new System.Drawing.Size(833, 178);
this.richTextBox2.TabIndex = 22;
this.richTextBox2.Text = "";
//
// frmEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(852, 618);
this.Controls.Add(this.richTextBox2);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.toolStrip1);
this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.richTextBox1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.menuStrip1;
this.Name = "frmEditor";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "StringChipper";
this.Load += new System.EventHandler(this.frmEditor_Load);
this.richContextStrip.ResumeLayout(false);
this.toolStrip1.ResumeLayout(false);
this.toolStrip1.PerformLayout();
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.ContextMenuStrip richContextStrip;
private System.Windows.Forms.ToolStripMenuItem cutToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem clearToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem;
private System.Windows.Forms.ToolStrip toolStrip1;
private System.Windows.Forms.ToolStripButton saveStripButton;
private System.Windows.Forms.ToolStripButton openFileStripButton;
private System.Windows.Forms.ToolStripComboBox fontStripComboBox;
private System.Windows.Forms.ToolStripComboBox fontSizeComboBox;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripButton boldStripButton3;
private System.Windows.Forms.ToolStripButton italicStripButton;
private System.Windows.Forms.ToolStripButton underlineStripButton;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStripDropDownButton colorStripDropDownButton;
private System.Windows.Forms.ToolStripButton leftAlignStripButton;
private System.Windows.Forms.ToolStripButton centerAlignStripButton;
private System.Windows.Forms.ToolStripButton rightAlignStripButton;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripButton increaseStripButton;
private System.Windows.Forms.ToolStripButton decreaseStripButton;
private System.Windows.Forms.ToolStripButton bulletListStripButton;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
private System.Windows.Forms.ToolStripButton undoStripButton;
private System.Windows.Forms.ToolStripButton redoStripButton;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripMenuItem cutToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem clearAllToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem deleteStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem newMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
private System.Windows.Forms.PrintDialog printDialog;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator8;
private System.Windows.Forms.ToolStripDropDownButton changeCaseDropDownButton;
private System.Windows.Forms.ToolStripMenuItem lowercaseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem uppercaseToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem formatToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem wordWrapToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem fontToolStripMenuItem;
private System.Windows.Forms.FontDialog fontDialog1;
private System.Windows.Forms.ToolStripDropDownButton zoomDropDownButton;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator9;
private System.Windows.Forms.ToolStripButton clearFormattingStripButton;
private System.Windows.Forms.PrintPreviewDialog printPreviewDialog;
private System.Drawing.Printing.PrintDocument printDocument;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator10;
private System.Windows.Forms.ToolStripButton printStripButton;
private System.Windows.Forms.ToolStripButton printPreviewStripButton;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator11;
private System.Windows.Forms.ToolStripMenuItem printStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem printPreviewStripMenuItem;
private System.Windows.Forms.ColorDialog colorDialog1;
private System.Windows.Forms.ToolStripMenuItem colorOptionsToolStripMenuItem;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripStatusLabel lineColumnStatusLabel;
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem OpenMenuItem;
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.RichTextBox richTextBox2;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View File

@@ -0,0 +1 @@
44ae5034d38c29604d9276b27256872f99addc9c37628bb3b4cf996c25e609a4

View File

@@ -0,0 +1,12 @@
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\bin\Debug\Tools_StringCipher.exe.config
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\bin\Debug\Tools_StringCipher.exe
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\bin\Debug\Tools_StringCipher.pdb
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\obj\Debug\Tools_StringCipher.csproj.AssemblyReference.cache
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\obj\Debug\Text_Editor.frmEditor.resources
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\obj\Debug\Tools_StringCipher.Properties.Resources.resources
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\obj\Debug\Tools_StringCipher.csproj.GenerateResource.cache
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\obj\Debug\Tools_StringCipher.csproj.CoreCompileInputs.cache
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\obj\Debug\Tools_StringCipher.exe
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\obj\Debug\Tools_StringCipher.pdb
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\obj\Debug\Tools_StringCipher.Form1.resources
E:\Software-Projekte\OnDoc\OnDoc\Tools_StringCipher\obj\Debug\Tools_StringCipher.frmEditor.resources