-
Notifications
You must be signed in to change notification settings - Fork 7
/
App.xaml.cs
37 lines (36 loc) · 1.04 KB
/
App.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Globalization;
namespace ImageShrinker
{
/// <summary>
/// App.xaml の相互作用ロジック
/// </summary>
public partial class App : Application
{
public static string Language;
/// <summary>
/// コマンドラインを処理するスタートアップ
/// </summary>
void app_Startup(object sender, StartupEventArgs e)
{
if (e.Args.Length == 0) return;
foreach (string argument in e.Args)
{
if (argument.Contains("-E") || argument.Contains("-e"))
{
Language = "English";
//vga.Save();
}
else if (argument.Contains("-J") || argument.Contains("-j"))
{
Language = "Japanese";
}
}
}
}
}