本文整理汇总了C#中Bjd.Kernel.IsJp方法的典型用法代码示例。如果您正苦于以下问题:C# Kernel.IsJp方法的具体用法?C# Kernel.IsJp怎么用?C# Kernel.IsJp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bjd.Kernel
的用法示例。
在下文中一共展示了Kernel.IsJp方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Dlg
public Dlg(Kernel kernel, string nameTag, Object obj, string caption)
: base(kernel, nameTag, obj, caption)
{
//リストビューの作成
_listView = new ListView{
Dock = DockStyle.Fill,
FullRowSelect = true,
HideSelection = false,
View = System.Windows.Forms.View.Details
};
_listView.Columns.Add("Status");
_listView.Columns.Add("Ip");
_listView.Columns.Add("MacAppointment");
_listView.Columns.Add("Mac");
_listView.Columns.Add("Date");
_listView.Columns[0].Width = 120;
_listView.Columns[1].Width = 120;
_listView.Columns[2].Width = 100;
_listView.Columns[3].Width = 250;
_listView.Columns[4].Width = 350;
//メインコントロールの追加
AddControl(_listView);
ToolStripMenuItem menuFile = AddMenu(null, null, kernel.IsJp() ? "ファイル(&F)" : "&File", Keys.None);
Add2(menuFile, FuncRefresh, kernel.IsJp() ? "最新の状態に更新する(&R)" : "&Refresh", Keys.F5);
AddMenu(menuFile, null, "-", Keys.None);
AddMenu(menuFile, FuncClose, kernel.IsJp() ? "閉じる(&C)" : "&Close", Keys.None);
FuncRefresh();//最新の状態に更新する
}
示例2: PasswordDlg
public PasswordDlg(Kernel kernel)
{
InitializeComponent();
_kernel = kernel;
label1.Text = (kernel.IsJp()) ? "�p�X���[�h����͂��Ă�������" : "Login password";
buttonCancel.Text = (kernel.IsJp()) ? "�L�����Z��" : "Cancel";
}
示例3: Option
public Option(Kernel kernel, string path, string nameTag)
: base(kernel.IsJp(), path, nameTag)
{
var key = "useServer";
Add(new OneVal(key, false, Crlf.Nextline,new CtrlCheckBox(Lang.Value(key))));
var pageList = new List<OnePage>();
key = "Basic";
pageList.Add(Page1(key, Lang.Value(key), kernel));
key = "ESMTP";
pageList.Add(Page2(key, Lang.Value(key), kernel));
key = "Relay";
pageList.Add(Page3(key, Lang.Value(key), kernel));
key = "Queue";
pageList.Add(Page4(key, Lang.Value(key), kernel));
key = "Host";
pageList.Add(Page5(key, Lang.Value(key), kernel));
key = "Heda";
pageList.Add(Page6(key, Lang.Value(key), kernel));
key = "Aliases";
pageList.Add(Page7(key, Lang.Value(key), kernel));
key = "AutoReception";
pageList.Add(Page8(key, Lang.Value(key), kernel));
pageList.Add(PageAcl());
Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));
Read(kernel.IniDb); // レジストリからの読み込み
}
示例4: OptionDnsDomain
public OptionDnsDomain(Kernel kernel, string path, string nameTag)
: base(kernel.IsJp(), path, nameTag)
{
var pageList = new List<OnePage>();
var key = "Basic";
pageList.Add(Page1(key,Lang.Value(key),kernel));
Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));
Read(kernel.IniDb); //�@���W�X�g������̓ǂݍ���
}
示例5: OptionMl
public OptionMl(Kernel kernel, string path, string nameTag)
: base(kernel.IsJp(), path, nameTag)
{
var pageList = new List<OnePage>();
var key = "Mailing List";
pageList.Add(Page1(key, Lang.Value(key), kernel));
Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));
Read(kernel.IniDb); // レジストリからの読み込み
}
示例6: OptionOneMl
public OptionOneMl(Kernel kernel, string path, string nameTag)
: base(kernel.IsJp(), path, nameTag)
{
var pageList = new List<OnePage>();
var key = "Basic";
pageList.Add(Page1(key, Lang.Value(key),kernel));
key = "Member";
pageList.Add(Page2(key, Lang.Value(key),kernel));
pageList.Add(Page3("Guide", "Guide", kernel));
pageList.Add(Page4("Deny", "Deny", kernel));
pageList.Add(Page5("Confirm", "Confirm", kernel));
pageList.Add(Page6("Welcome", "Welcome", kernel));
pageList.Add(Page7("Append", "Append", kernel));
pageList.Add(Page8("Help", "Help", kernel));
pageList.Add(Page9("Admin", "Admin", kernel));
Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));
Read(kernel.IniDb); // レジストリからの読み込み
}
示例7: VersionDlg
public VersionDlg(Kernel kernel)
{
InitializeComponent();
Text = kernel.IsJp() ? "バージョン情報" : "Version";
labelApplicationName.Text = Define.ApplicationName();
labelCopyright.Text = Define.Copyright();
labelVersion.Text = "Version " + kernel.Ver.Version();
try {
var installedVersions = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP");
var versionNames = installedVersions.GetSubKeyNames();
var sb = new StringBuilder();
foreach (string versionName in versionNames) {
sb.Append(versionName);
try {
var sp = Convert.ToInt32(installedVersions.OpenSubKey(versionName).GetValue("SP", 0));
if(sp!=0)
sb.Append("(SP"+sp+")");
}
catch {
}
sb.Append(" ");
}
//int sp = Convert.ToInt32(installed_versions.OpenSubKey(version_names[version_names.Length - 1]).GetValue("SP", 0));
textBoxDotnetInstall.Text = sb.ToString();
labelDotnetInstall.Text = ".NET";
var runVer = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();
labelDotnetRunning.Text = string.Format("Running : {0}",runVer);
}
catch {
labelDotnetInstall.Text = ".NET Framework ??";
}
}