Browse Source
* Visual Studio solution and project, complete with a shiny .gitignore. * Has enough features to create and copy GUID strings. * Pretty much intended for use with Pane plugins, and it shows. :P * MIT license (naturally).master
Ian Burgmyer
5 years ago
commit
feb0f7b16b
14 changed files with 1038 additions and 0 deletions
@ -0,0 +1,261 @@ |
|||||||
|
## Ignore Visual Studio temporary files, build results, and |
||||||
|
## files generated by popular Visual Studio add-ons. |
||||||
|
|
||||||
|
# User-specific files |
||||||
|
*.suo |
||||||
|
*.user |
||||||
|
*.userosscache |
||||||
|
*.sln.docstates |
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio) |
||||||
|
*.userprefs |
||||||
|
|
||||||
|
# Build results |
||||||
|
[Dd]ebug/ |
||||||
|
[Dd]ebugPublic/ |
||||||
|
[Rr]elease/ |
||||||
|
[Rr]eleases/ |
||||||
|
x64/ |
||||||
|
x86/ |
||||||
|
bld/ |
||||||
|
[Bb]in/ |
||||||
|
[Oo]bj/ |
||||||
|
[Ll]og/ |
||||||
|
|
||||||
|
# Visual Studio 2015 cache/options directory |
||||||
|
.vs/ |
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot |
||||||
|
#wwwroot/ |
||||||
|
|
||||||
|
# MSTest test Results |
||||||
|
[Tt]est[Rr]esult*/ |
||||||
|
[Bb]uild[Ll]og.* |
||||||
|
|
||||||
|
# NUNIT |
||||||
|
*.VisualState.xml |
||||||
|
TestResult.xml |
||||||
|
|
||||||
|
# Build Results of an ATL Project |
||||||
|
[Dd]ebugPS/ |
||||||
|
[Rr]eleasePS/ |
||||||
|
dlldata.c |
||||||
|
|
||||||
|
# DNX |
||||||
|
project.lock.json |
||||||
|
project.fragment.lock.json |
||||||
|
artifacts/ |
||||||
|
|
||||||
|
*_i.c |
||||||
|
*_p.c |
||||||
|
*_i.h |
||||||
|
*.ilk |
||||||
|
*.meta |
||||||
|
*.obj |
||||||
|
*.pch |
||||||
|
*.pdb |
||||||
|
*.pgc |
||||||
|
*.pgd |
||||||
|
*.rsp |
||||||
|
*.sbr |
||||||
|
*.tlb |
||||||
|
*.tli |
||||||
|
*.tlh |
||||||
|
*.tmp |
||||||
|
*.tmp_proj |
||||||
|
*.log |
||||||
|
*.vspscc |
||||||
|
*.vssscc |
||||||
|
.builds |
||||||
|
*.pidb |
||||||
|
*.svclog |
||||||
|
*.scc |
||||||
|
|
||||||
|
# Chutzpah Test files |
||||||
|
_Chutzpah* |
||||||
|
|
||||||
|
# Visual C++ cache files |
||||||
|
ipch/ |
||||||
|
*.aps |
||||||
|
*.ncb |
||||||
|
*.opendb |
||||||
|
*.opensdf |
||||||
|
*.sdf |
||||||
|
*.cachefile |
||||||
|
*.VC.db |
||||||
|
*.VC.VC.opendb |
||||||
|
|
||||||
|
# Visual Studio profiler |
||||||
|
*.psess |
||||||
|
*.vsp |
||||||
|
*.vspx |
||||||
|
*.sap |
||||||
|
|
||||||
|
# TFS 2012 Local Workspace |
||||||
|
$tf/ |
||||||
|
|
||||||
|
# Guidance Automation Toolkit |
||||||
|
*.gpState |
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in |
||||||
|
_ReSharper*/ |
||||||
|
*.[Rr]e[Ss]harper |
||||||
|
*.DotSettings.user |
||||||
|
|
||||||
|
# JustCode is a .NET coding add-in |
||||||
|
.JustCode |
||||||
|
|
||||||
|
# TeamCity is a build add-in |
||||||
|
_TeamCity* |
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool |
||||||
|
*.dotCover |
||||||
|
|
||||||
|
# NCrunch |
||||||
|
_NCrunch_* |
||||||
|
.*crunch*.local.xml |
||||||
|
nCrunchTemp_* |
||||||
|
|
||||||
|
# MightyMoose |
||||||
|
*.mm.* |
||||||
|
AutoTest.Net/ |
||||||
|
|
||||||
|
# Web workbench (sass) |
||||||
|
.sass-cache/ |
||||||
|
|
||||||
|
# Installshield output folder |
||||||
|
[Ee]xpress/ |
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in |
||||||
|
DocProject/buildhelp/ |
||||||
|
DocProject/Help/*.HxT |
||||||
|
DocProject/Help/*.HxC |
||||||
|
DocProject/Help/*.hhc |
||||||
|
DocProject/Help/*.hhk |
||||||
|
DocProject/Help/*.hhp |
||||||
|
DocProject/Help/Html2 |
||||||
|
DocProject/Help/html |
||||||
|
|
||||||
|
# Click-Once directory |
||||||
|
publish/ |
||||||
|
|
||||||
|
# Publish Web Output |
||||||
|
*.[Pp]ublish.xml |
||||||
|
*.azurePubxml |
||||||
|
# TODO: Comment the next line if you want to checkin your web deploy settings |
||||||
|
# but database connection strings (with potential passwords) will be unencrypted |
||||||
|
#*.pubxml |
||||||
|
*.publishproj |
||||||
|
|
||||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to |
||||||
|
# checkin your Azure Web App publish settings, but sensitive information contained |
||||||
|
# in these scripts will be unencrypted |
||||||
|
PublishScripts/ |
||||||
|
|
||||||
|
# NuGet Packages |
||||||
|
*.nupkg |
||||||
|
# The packages folder can be ignored because of Package Restore |
||||||
|
**/packages/* |
||||||
|
# except build/, which is used as an MSBuild target. |
||||||
|
!**/packages/build/ |
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed |
||||||
|
#!**/packages/repositories.config |
||||||
|
# NuGet v3's project.json files produces more ignoreable files |
||||||
|
*.nuget.props |
||||||
|
*.nuget.targets |
||||||
|
|
||||||
|
# Microsoft Azure Build Output |
||||||
|
csx/ |
||||||
|
*.build.csdef |
||||||
|
|
||||||
|
# Microsoft Azure Emulator |
||||||
|
ecf/ |
||||||
|
rcf/ |
||||||
|
|
||||||
|
# Windows Store app package directories and files |
||||||
|
AppPackages/ |
||||||
|
BundleArtifacts/ |
||||||
|
Package.StoreAssociation.xml |
||||||
|
_pkginfo.txt |
||||||
|
|
||||||
|
# Visual Studio cache files |
||||||
|
# files ending in .cache can be ignored |
||||||
|
*.[Cc]ache |
||||||
|
# but keep track of directories ending in .cache |
||||||
|
!*.[Cc]ache/ |
||||||
|
|
||||||
|
# Others |
||||||
|
ClientBin/ |
||||||
|
~$* |
||||||
|
*~ |
||||||
|
*.dbmdl |
||||||
|
*.dbproj.schemaview |
||||||
|
*.jfm |
||||||
|
*.pfx |
||||||
|
*.publishsettings |
||||||
|
node_modules/ |
||||||
|
orleans.codegen.cs |
||||||
|
|
||||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components |
||||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) |
||||||
|
#bower_components/ |
||||||
|
|
||||||
|
# RIA/Silverlight projects |
||||||
|
Generated_Code/ |
||||||
|
|
||||||
|
# Backup & report files from converting an old project file |
||||||
|
# to a newer Visual Studio version. Backup files are not needed, |
||||||
|
# because we have git ;-) |
||||||
|
_UpgradeReport_Files/ |
||||||
|
Backup*/ |
||||||
|
UpgradeLog*.XML |
||||||
|
UpgradeLog*.htm |
||||||
|
|
||||||
|
# SQL Server files |
||||||
|
*.mdf |
||||||
|
*.ldf |
||||||
|
|
||||||
|
# Business Intelligence projects |
||||||
|
*.rdl.data |
||||||
|
*.bim.layout |
||||||
|
*.bim_*.settings |
||||||
|
|
||||||
|
# Microsoft Fakes |
||||||
|
FakesAssemblies/ |
||||||
|
|
||||||
|
# GhostDoc plugin setting file |
||||||
|
*.GhostDoc.xml |
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio |
||||||
|
.ntvs_analysis.dat |
||||||
|
|
||||||
|
# Visual Studio 6 build log |
||||||
|
*.plg |
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file |
||||||
|
*.opt |
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output |
||||||
|
**/*.HTMLClient/GeneratedArtifacts |
||||||
|
**/*.DesktopClient/GeneratedArtifacts |
||||||
|
**/*.DesktopClient/ModelManifest.xml |
||||||
|
**/*.Server/GeneratedArtifacts |
||||||
|
**/*.Server/ModelManifest.xml |
||||||
|
_Pvt_Extensions |
||||||
|
|
||||||
|
# Paket dependency manager |
||||||
|
.paket/paket.exe |
||||||
|
paket-files/ |
||||||
|
|
||||||
|
# FAKE - F# Make |
||||||
|
.fake/ |
||||||
|
|
||||||
|
# JetBrains Rider |
||||||
|
.idea/ |
||||||
|
*.sln.iml |
||||||
|
|
||||||
|
# CodeRush |
||||||
|
.cr/ |
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS) |
||||||
|
__pycache__/ |
||||||
|
*.pyc |
@ -0,0 +1,25 @@ |
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00 |
||||||
|
# Visual Studio Version 16 |
||||||
|
VisualStudioVersion = 16.0.29001.49 |
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1 |
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GUIDacious", "GUIDacious\GUIDacious.csproj", "{B6AFEBDE-570F-42AC-B34D-D78B1872628C}" |
||||||
|
EndProject |
||||||
|
Global |
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||||
|
Debug|Any CPU = Debug|Any CPU |
||||||
|
Release|Any CPU = Release|Any CPU |
||||||
|
EndGlobalSection |
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||||
|
{B6AFEBDE-570F-42AC-B34D-D78B1872628C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||||
|
{B6AFEBDE-570F-42AC-B34D-D78B1872628C}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||||
|
{B6AFEBDE-570F-42AC-B34D-D78B1872628C}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||||
|
{B6AFEBDE-570F-42AC-B34D-D78B1872628C}.Release|Any CPU.Build.0 = Release|Any CPU |
||||||
|
EndGlobalSection |
||||||
|
GlobalSection(SolutionProperties) = preSolution |
||||||
|
HideSolutionNode = FALSE |
||||||
|
EndGlobalSection |
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution |
||||||
|
SolutionGuid = {799047DC-E47C-4A3C-BFBB-FE6914DF247A} |
||||||
|
EndGlobalSection |
||||||
|
EndGlobal |
@ -0,0 +1,6 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||||
|
<configuration> |
||||||
|
<startup> |
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> |
||||||
|
</startup> |
||||||
|
</configuration> |
@ -0,0 +1,83 @@ |
|||||||
|
<?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>{B6AFEBDE-570F-42AC-B34D-D78B1872628C}</ProjectGuid> |
||||||
|
<OutputType>WinExe</OutputType> |
||||||
|
<RootNamespace>GUIDacious</RootNamespace> |
||||||
|
<AssemblyName>GUIDacious</AssemblyName> |
||||||
|
<TargetFrameworkVersion>v4.7.2</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="GuidForm.cs"> |
||||||
|
<SubType>Form</SubType> |
||||||
|
</Compile> |
||||||
|
<Compile Include="GuidForm.Designer.cs"> |
||||||
|
<DependentUpon>GuidForm.cs</DependentUpon> |
||||||
|
</Compile> |
||||||
|
<Compile Include="Program.cs" /> |
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||||
|
<EmbeddedResource Include="GuidForm.resx"> |
||||||
|
<DependentUpon>GuidForm.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> |
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||||
|
</Project> |
@ -0,0 +1,195 @@ |
|||||||
|
namespace GUIDacious { |
||||||
|
partial class GuidForm { |
||||||
|
/// <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.NewGuidButton = new System.Windows.Forms.Button(); |
||||||
|
this.CurrentGuidLabel = new System.Windows.Forms.Label(); |
||||||
|
this.CurrentGuidDisplay = new System.Windows.Forms.Label(); |
||||||
|
this.GuidFormatBox = new System.Windows.Forms.TextBox(); |
||||||
|
this.CopyButton = new System.Windows.Forms.Button(); |
||||||
|
this.FormatsGroup = new System.Windows.Forms.GroupBox(); |
||||||
|
this.FormatComponentsUpper = new System.Windows.Forms.RadioButton(); |
||||||
|
this.FormatStringUpper = new System.Windows.Forms.RadioButton(); |
||||||
|
this.FormatNewGuid = new System.Windows.Forms.RadioButton(); |
||||||
|
this.FormatComponentsLower = new System.Windows.Forms.RadioButton(); |
||||||
|
this.FormatStringLower = new System.Windows.Forms.RadioButton(); |
||||||
|
this.FormatsGroup.SuspendLayout(); |
||||||
|
this.SuspendLayout(); |
||||||
|
// |
||||||
|
// NewGuidButton |
||||||
|
// |
||||||
|
this.NewGuidButton.Location = new System.Drawing.Point(12, 12); |
||||||
|
this.NewGuidButton.Name = "NewGuidButton"; |
||||||
|
this.NewGuidButton.Size = new System.Drawing.Size(75, 23); |
||||||
|
this.NewGuidButton.TabIndex = 0; |
||||||
|
this.NewGuidButton.Text = "&New GUID"; |
||||||
|
this.NewGuidButton.UseVisualStyleBackColor = true; |
||||||
|
this.NewGuidButton.Click += new System.EventHandler(this.NewGuidButton_Click); |
||||||
|
// |
||||||
|
// CurrentGuidLabel |
||||||
|
// |
||||||
|
this.CurrentGuidLabel.AutoSize = true; |
||||||
|
this.CurrentGuidLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
||||||
|
this.CurrentGuidLabel.Location = new System.Drawing.Point(105, 17); |
||||||
|
this.CurrentGuidLabel.Name = "CurrentGuidLabel"; |
||||||
|
this.CurrentGuidLabel.Size = new System.Drawing.Size(87, 13); |
||||||
|
this.CurrentGuidLabel.TabIndex = 1; |
||||||
|
this.CurrentGuidLabel.Text = "Current GUID:"; |
||||||
|
// |
||||||
|
// CurrentGuidDisplay |
||||||
|
// |
||||||
|
this.CurrentGuidDisplay.AutoSize = true; |
||||||
|
this.CurrentGuidDisplay.Location = new System.Drawing.Point(198, 17); |
||||||
|
this.CurrentGuidDisplay.Name = "CurrentGuidDisplay"; |
||||||
|
this.CurrentGuidDisplay.Size = new System.Drawing.Size(211, 13); |
||||||
|
this.CurrentGuidDisplay.TabIndex = 2; |
||||||
|
this.CurrentGuidDisplay.Text = "00000000-0000-0000-0000-000000000000"; |
||||||
|
// |
||||||
|
// GuidFormatBox |
||||||
|
// |
||||||
|
this.GuidFormatBox.Font = new System.Drawing.Font("Lucida Console", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
||||||
|
this.GuidFormatBox.Location = new System.Drawing.Point(13, 160); |
||||||
|
this.GuidFormatBox.Multiline = true; |
||||||
|
this.GuidFormatBox.Name = "GuidFormatBox"; |
||||||
|
this.GuidFormatBox.ReadOnly = true; |
||||||
|
this.GuidFormatBox.Size = new System.Drawing.Size(397, 138); |
||||||
|
this.GuidFormatBox.TabIndex = 4; |
||||||
|
// |
||||||
|
// CopyButton |
||||||
|
// |
||||||
|
this.CopyButton.Location = new System.Drawing.Point(298, 304); |
||||||
|
this.CopyButton.Name = "CopyButton"; |
||||||
|
this.CopyButton.Size = new System.Drawing.Size(112, 23); |
||||||
|
this.CopyButton.TabIndex = 5; |
||||||
|
this.CopyButton.Text = "&Copy to Clipboard"; |
||||||
|
this.CopyButton.UseVisualStyleBackColor = true; |
||||||
|
this.CopyButton.Click += new System.EventHandler(this.CopyButton_Click); |
||||||
|
// |
||||||
|
// FormatsGroup |
||||||
|
// |
||||||
|
this.FormatsGroup.Controls.Add(this.FormatComponentsUpper); |
||||||
|
this.FormatsGroup.Controls.Add(this.FormatStringUpper); |
||||||
|
this.FormatsGroup.Controls.Add(this.FormatNewGuid); |
||||||
|
this.FormatsGroup.Controls.Add(this.FormatComponentsLower); |
||||||
|
this.FormatsGroup.Controls.Add(this.FormatStringLower); |
||||||
|
this.FormatsGroup.Location = new System.Drawing.Point(13, 41); |
||||||
|
this.FormatsGroup.Name = "FormatsGroup"; |
||||||
|
this.FormatsGroup.Size = new System.Drawing.Size(396, 113); |
||||||
|
this.FormatsGroup.TabIndex = 3; |
||||||
|
this.FormatsGroup.TabStop = false; |
||||||
|
this.FormatsGroup.Text = "&Formats"; |
||||||
|
// |
||||||
|
// FormatComponentsUpper |
||||||
|
// |
||||||
|
this.FormatComponentsUpper.AutoSize = true; |
||||||
|
this.FormatComponentsUpper.Location = new System.Drawing.Point(6, 88); |
||||||
|
this.FormatComponentsUpper.Name = "FormatComponentsUpper"; |
||||||
|
this.FormatComponentsUpper.Size = new System.Drawing.Size(143, 17); |
||||||
|
this.FormatComponentsUpper.TabIndex = 4; |
||||||
|
this.FormatComponentsUpper.Text = "Components (uppercase)"; |
||||||
|
this.FormatComponentsUpper.UseVisualStyleBackColor = true; |
||||||
|
this.FormatComponentsUpper.CheckedChanged += new System.EventHandler(this.Format_CheckedChanged); |
||||||
|
// |
||||||
|
// FormatStringUpper |
||||||
|
// |
||||||
|
this.FormatStringUpper.AutoSize = true; |
||||||
|
this.FormatStringUpper.Location = new System.Drawing.Point(6, 42); |
||||||
|
this.FormatStringUpper.Name = "FormatStringUpper"; |
||||||
|
this.FormatStringUpper.Size = new System.Drawing.Size(111, 17); |
||||||
|
this.FormatStringUpper.TabIndex = 3; |
||||||
|
this.FormatStringUpper.Text = "String (uppercase)"; |
||||||
|
this.FormatStringUpper.UseVisualStyleBackColor = true; |
||||||
|
this.FormatStringUpper.CheckedChanged += new System.EventHandler(this.Format_CheckedChanged); |
||||||
|
// |
||||||
|
// FormatNewGuid |
||||||
|
// |
||||||
|
this.FormatNewGuid.AutoSize = true; |
||||||
|
this.FormatNewGuid.Location = new System.Drawing.Point(205, 19); |
||||||
|
this.FormatNewGuid.Name = "FormatNewGuid"; |
||||||
|
this.FormatNewGuid.Size = new System.Drawing.Size(79, 17); |
||||||
|
this.FormatNewGuid.TabIndex = 2; |
||||||
|
this.FormatNewGuid.Text = "new Guid();"; |
||||||
|
this.FormatNewGuid.UseVisualStyleBackColor = true; |
||||||
|
this.FormatNewGuid.CheckedChanged += new System.EventHandler(this.Format_CheckedChanged); |
||||||
|
// |
||||||
|
// FormatComponentsLower |
||||||
|
// |
||||||
|
this.FormatComponentsLower.AutoSize = true; |
||||||
|
this.FormatComponentsLower.Location = new System.Drawing.Point(6, 65); |
||||||
|
this.FormatComponentsLower.Name = "FormatComponentsLower"; |
||||||
|
this.FormatComponentsLower.Size = new System.Drawing.Size(141, 17); |
||||||
|
this.FormatComponentsLower.TabIndex = 1; |
||||||
|
this.FormatComponentsLower.Text = "Components (lowercase)"; |
||||||
|
this.FormatComponentsLower.UseVisualStyleBackColor = true; |
||||||
|
this.FormatComponentsLower.CheckedChanged += new System.EventHandler(this.Format_CheckedChanged); |
||||||
|
// |
||||||
|
// FormatStringLower |
||||||
|
// |
||||||
|
this.FormatStringLower.AutoSize = true; |
||||||
|
this.FormatStringLower.Checked = true; |
||||||
|
this.FormatStringLower.Location = new System.Drawing.Point(6, 19); |
||||||
|
this.FormatStringLower.Name = "FormatStringLower"; |
||||||
|
this.FormatStringLower.Size = new System.Drawing.Size(109, 17); |
||||||
|
this.FormatStringLower.TabIndex = 0; |
||||||
|
this.FormatStringLower.TabStop = true; |
||||||
|
this.FormatStringLower.Text = "String (lowercase)"; |
||||||
|
this.FormatStringLower.UseVisualStyleBackColor = true; |
||||||
|
this.FormatStringLower.CheckedChanged += new System.EventHandler(this.Format_CheckedChanged); |
||||||
|
// |
||||||
|
// GuidForm |
||||||
|
// |
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||||
|
this.ClientSize = new System.Drawing.Size(420, 339); |
||||||
|
this.Controls.Add(this.FormatsGroup); |
||||||
|
this.Controls.Add(this.CopyButton); |
||||||
|
this.Controls.Add(this.GuidFormatBox); |
||||||
|
this.Controls.Add(this.CurrentGuidDisplay); |
||||||
|
this.Controls.Add(this.CurrentGuidLabel); |
||||||
|
this.Controls.Add(this.NewGuidButton); |
||||||
|
this.Name = "GuidForm"; |
||||||
|
this.Text = "Form1"; |
||||||
|
this.FormatsGroup.ResumeLayout(false); |
||||||
|
this.FormatsGroup.PerformLayout(); |
||||||
|
this.ResumeLayout(false); |
||||||
|
this.PerformLayout(); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
private System.Windows.Forms.Button NewGuidButton; |
||||||
|
private System.Windows.Forms.Label CurrentGuidLabel; |
||||||
|
private System.Windows.Forms.Label CurrentGuidDisplay; |
||||||
|
private System.Windows.Forms.TextBox GuidFormatBox; |
||||||
|
private System.Windows.Forms.Button CopyButton; |
||||||
|
private System.Windows.Forms.GroupBox FormatsGroup; |
||||||
|
private System.Windows.Forms.RadioButton FormatNewGuid; |
||||||
|
private System.Windows.Forms.RadioButton FormatComponentsLower; |
||||||
|
private System.Windows.Forms.RadioButton FormatStringLower; |
||||||
|
private System.Windows.Forms.RadioButton FormatComponentsUpper; |
||||||
|
private System.Windows.Forms.RadioButton FormatStringUpper; |
||||||
|
} |
||||||
|
} |
||||||
|
|
@ -0,0 +1,62 @@ |
|||||||
|
using System; |
||||||
|
using System.Linq; |
||||||
|
using System.Windows.Forms; |
||||||
|
|
||||||
|
namespace GUIDacious { |
||||||
|
public partial class GuidForm : Form { |
||||||
|
private Guid _currentGuid; |
||||||
|
|
||||||
|
private Guid CurrentGuid { |
||||||
|
get => _currentGuid; |
||||||
|
set { |
||||||
|
_currentGuid = value; |
||||||
|
RefreshView(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public GuidForm() { |
||||||
|
InitializeComponent(); |
||||||
|
NewGuid(); |
||||||
|
} |
||||||
|
|
||||||
|
private string ComponentsString(bool upperCase = false) { |
||||||
|
// Byte counts per components: 4, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1 |
||||||
|
|
||||||
|
var bytes = CurrentGuid.ToByteArray(); |
||||||
|
var c0 = BitConverter.ToString(bytes.Take(4).ToArray()).Replace("-", ""); |
||||||
|
var c1 = BitConverter.ToString(bytes.Skip(4).Take(2).ToArray()).Replace("-", ""); |
||||||
|
var c2 = BitConverter.ToString(bytes.Skip(6).Take(2).ToArray()).Replace("-", ""); |
||||||
|
var result = $"0x{c0}, 0x{c1}, 0x{c2}, 0x{bytes[8]:x2}, 0x{bytes[9]:x2}, 0x{bytes[10]:x2}, 0x{bytes[11]:x2}, 0x{bytes[12]:x2}, 0x{bytes[13]:x2}, 0x{bytes[14]:x2}, 0x{bytes[15]:x2}"; |
||||||
|
|
||||||
|
return upperCase |
||||||
|
? result.ToUpper().Replace("X", "x") |
||||||
|
: result.ToLower(); |
||||||
|
} |
||||||
|
|
||||||
|
private void CopyButton_Click(object sender, EventArgs e) => |
||||||
|
Clipboard.SetText(GuidFormatBox.Text); |
||||||
|
|
||||||
|
private void Format_CheckedChanged(object sender, EventArgs e) => |
||||||
|
RefreshView(); |
||||||
|
|
||||||
|
private void NewGuid() => CurrentGuid = Guid.NewGuid(); |
||||||
|
|
||||||
|
private void NewGuidButton_Click(object sender, EventArgs e) => NewGuid(); |
||||||
|
|
||||||
|
private void RefreshView() { |
||||||
|
CurrentGuidDisplay.Text = CurrentGuid.ToString(); |
||||||
|
|
||||||
|
if(FormatStringLower.Checked) { |
||||||
|
GuidFormatBox.Text = CurrentGuid.ToString(); |
||||||
|
} else if(FormatStringUpper.Checked) { |
||||||
|
GuidFormatBox.Text = CurrentGuid.ToString().ToUpper(); |
||||||
|
} else if(FormatComponentsLower.Checked) { |
||||||
|
GuidFormatBox.Text = ComponentsString(); |
||||||
|
} else if(FormatComponentsUpper.Checked) { |
||||||
|
GuidFormatBox.Text = ComponentsString(true); |
||||||
|
} else if(FormatNewGuid.Checked) { |
||||||
|
GuidFormatBox.Text = $"new Guid({ComponentsString()});"; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -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> |
@ -0,0 +1,19 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Threading.Tasks; |
||||||
|
using System.Windows.Forms; |
||||||
|
|
||||||
|
namespace GUIDacious { |
||||||
|
static class Program { |
||||||
|
/// <summary> |
||||||
|
/// The main entry point for the application. |
||||||
|
/// </summary> |
||||||
|
[STAThread] |
||||||
|
static void Main() { |
||||||
|
Application.EnableVisualStyles(); |
||||||
|
Application.SetCompatibleTextRenderingDefault(false); |
||||||
|
Application.Run(new GuidForm()); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,36 @@ |
|||||||
|
using System.Reflection; |
||||||
|
using System.Runtime.CompilerServices; |
||||||
|
using System.Runtime.InteropServices; |
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following |
||||||
|
// set of attributes. Change these attribute values to modify the information |
||||||
|
// associated with an assembly. |
||||||
|
[assembly: AssemblyTitle("GUIDacious")] |
||||||
|
[assembly: AssemblyDescription("")] |
||||||
|
[assembly: AssemblyConfiguration("")] |
||||||
|
[assembly: AssemblyCompany("")] |
||||||
|
[assembly: AssemblyProduct("GUIDacious")] |
||||||
|
[assembly: AssemblyCopyright("Copyright © 2019")] |
||||||
|
[assembly: AssemblyTrademark("")] |
||||||
|
[assembly: AssemblyCulture("")] |
||||||
|
|
||||||
|
// Setting ComVisible to false makes the types in this assembly not visible |
||||||
|
// to COM components. If you need to access a type in this assembly from |
||||||
|
// COM, set the ComVisible attribute to true on that type. |
||||||
|
[assembly: ComVisible(false)] |
||||||
|
|
||||||
|
// The following GUID is for the ID of the typelib if this project is exposed to COM |
||||||
|
[assembly: Guid("b6afebde-570f-42ac-b34d-d78b1872628c")] |
||||||
|
|
||||||
|
// Version information for an assembly consists of the following four values: |
||||||
|
// |
||||||
|
// Major Version |
||||||
|
// Minor Version |
||||||
|
// Build Number |
||||||
|
// Revision |
||||||
|
// |
||||||
|
// You can specify all the values or you can default the Build and Revision Numbers |
||||||
|
// by using the '*' as shown below: |
||||||
|
// [assembly: AssemblyVersion("1.0.*")] |
||||||
|
[assembly: AssemblyVersion("1.0.0.0")] |
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")] |
@ -0,0 +1,62 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <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 GUIDacious.Properties { |
||||||
|
|
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// A strongly-typed resource class, for looking up localized strings, etc. |
||||||
|
/// </summary> |
||||||
|
// This class was auto-generated by the StronglyTypedResourceBuilder |
||||||
|
// class via a tool like ResGen or Visual Studio. |
||||||
|
// To add or remove a member, edit your .ResX file then rerun ResGen |
||||||
|
// with the /str option, or rebuild your VS project. |
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "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> |
||||||
|
/// Returns the cached ResourceManager instance used by this class. |
||||||
|
/// </summary> |
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||||
|
internal static global::System.Resources.ResourceManager ResourceManager { |
||||||
|
get { |
||||||
|
if ((resourceMan == null)) { |
||||||
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GUIDacious.Properties.Resources", typeof(Resources).Assembly); |
||||||
|
resourceMan = temp; |
||||||
|
} |
||||||
|
return resourceMan; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Overrides the current thread's CurrentUICulture property for all |
||||||
|
/// resource lookups using this strongly typed resource class. |
||||||
|
/// </summary> |
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||||
|
internal static global::System.Globalization.CultureInfo Culture { |
||||||
|
get { |
||||||
|
return resourceCulture; |
||||||
|
} |
||||||
|
set { |
||||||
|
resourceCulture = value; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -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> |
@ -0,0 +1,26 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <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 GUIDacious.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; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -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> |
@ -0,0 +1,19 @@ |
|||||||
|
Copyright (c) 2019 Ian J. Burgmyer |
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of |
||||||
|
this software and associated documentation files (the "Software"), to deal in |
||||||
|
the Software without restriction, including without limitation the rights to |
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies |
||||||
|
of the Software, and to permit persons to whom the Software is furnished to do |
||||||
|
so, subject to the following conditions: |
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all |
||||||
|
copies or substantial portions of the Software. |
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
SOFTWARE. |
Loading…
Reference in new issue