Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
アプリ完成
Browse files Browse the repository at this point in the history
  • Loading branch information
Takym committed Mar 24, 2020
1 parent e4e0eda commit 06d506d
Show file tree
Hide file tree
Showing 14 changed files with 1,512 additions and 87 deletions.
6 changes: 6 additions & 0 deletions AupLauncher/AupLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SettingProfile.cs" />
<Compile Include="Settings.cs" />
<EmbeddedResource Include="FormMain.en.resx">
<DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormMain.ja.resx">
<DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FormMain.resx">
<DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource>
Expand Down
39 changes: 39 additions & 0 deletions AupLauncher/ExecutionKind.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using AupLauncher.Properties;

namespace AupLauncher
{
Expand Down Expand Up @@ -66,5 +67,43 @@ public static ExecutionKind ToExecutionKind(this object obj)
return ExecutionKind.InvalidValue;
}
}

public static LocalizedExecutionKind Localized(this ExecutionKind value)
{
return new LocalizedExecutionKind(value);
}
}

public struct LocalizedExecutionKind
{
public ExecutionKind Value { get; }

public LocalizedExecutionKind(ExecutionKind value)
{
this.Value = value;
}

public override bool Equals(object obj)
{
if (obj is null) {
return false;
} else if (obj is LocalizedExecutionKind lek) {
return this.Value == lek.Value;
} else if (obj is ExecutionKind ek) {
return this.Value == ek;
} else {
return false;
}
}

public override int GetHashCode()
{
return this.Value.GetHashCode();
}

public override string ToString()
{
return Resources.ResourceManager.GetString("EK_" + this.Value.ToString());
}
}
}
190 changes: 113 additions & 77 deletions AupLauncher/FormMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 06d506d

Please sign in to comment.