本文整理汇总了C#中Kernel.IsJp方法的典型用法代码示例。如果您正苦于以下问题:C# Kernel.IsJp方法的具体用法?C# Kernel.IsJp怎么用?C# Kernel.IsJp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Kernel
的用法示例。
在下文中一共展示了Kernel.IsJp方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CtrlBrowse
protected CtrlBrowse(string help, int digits, Kernel kernel)
: base(help)
{
_digits = digits;
_kernel = kernel;
_isJp = _kernel.IsJp();
_runMode = _kernel.RunMode;
_editBrowse = _kernel.EditBrowse;
}
示例2: BrowseDlg
public BrowseDlg(Kernel kernel,SockTcp sockTcp,CtrlType ctrlType)
{
InitializeComponent();
_kernel = kernel;
_sockTcp = sockTcp;
_ctrlType = ctrlType;
_browseData = new BrowseData(textBox,buttonOk,_ctrlType);
listView.Columns.Add(kernel.IsJp() ? "名前" : "name");
listView.Columns.Add(kernel.IsJp() ? "サイズ" : "size");
listView.Columns[1].TextAlign = HorizontalAlignment.Right;
listView.Columns.Add(kernel.IsJp() ? "種類" : "type");
listView.Columns.Add(kernel.IsJp() ? "更新日" : "date");
kernel.WindowSize.Read(this);//ウインドサイズの復元
kernel.WindowSize.Read(listView);//カラム幅の復元
}
示例3: OptionSample
public OptionSample(Kernel kernel, String path)
: base(kernel.IsJp(), path, "Sample")
{
var pageList = new List<OnePage>();
var key = "Basic";
pageList.Add(Page1(key,Lang.Value(key)));
pageList.Add(PageAcl());
Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));
Read(kernel.IniDb); // レジストリからの読み込み
}
示例4: OptionLog
public OptionLog(Kernel kernel, string path)
: base(kernel.IsJp() ,path, "Log")
{
var pageList = new List<OnePage>();
var key = "Basic";
pageList.Add(Page1(key,Lang.Value(key), kernel));
key = "Limit";
pageList.Add(Page2(key, Lang.Value(key)));
Add(new OneVal("tab", null, Crlf.Nextline, new CtrlTabPage("tabPage", pageList)));
Read(kernel.IniDb); // レジストリからの読み込み
}
示例5: OneServer
//�R���X�g���N�^
protected OneServer(Kernel kernel, Conf conf, OneBind oneBind)
: base(kernel.CreateLogger(conf.NameTag,true,null))
{
Kernel = kernel;
NameTag = conf.NameTag;
Conf = conf;
_oneBind = oneBind;
IsJp = kernel.IsJp();
//Ver6.1.6
Lang = new Lang(IsJp ? LangKind.Jp : LangKind.En, "Server" + conf.NameTag);
CheckLang();//��`�̃e�X�g
//�e�X�g�p
if (Conf == null){
var optionSample = new OptionSample(kernel, "");
Conf = new Conf(optionSample);
Conf.Set("port", 9990);
Conf.Set("multiple", 10);
Conf.Set("acl", new Dat(new CtrlType[0]));
Conf.Set("enableAcl", 1);
Conf.Set("timeOut", 3);
}
//�e�X�g�p
if (_oneBind == null){
var ip = new Ip(IpKind.V4Localhost);
_oneBind = new OneBind(ip, ProtocolKind.Tcp);
}
Logger = kernel.CreateLogger(conf.NameTag, (bool)Conf.Get("useDetailsLog"), this);
_multiple = (int) Conf.Get("multiple");
//DHCP�ɂ�ACL�����݂��Ȃ�
if (NameTag != "Dhcp"){
//ACL���X�g ��`�������ꍇ�́AaclList�����Ȃ�
var acl = (Dat)Conf.Get("acl");
AclList = new AclList(acl, (int)Conf.Get("enableAcl"), Logger);
}
Timeout = (int) Conf.Get("timeOut");
}
示例6: OptionDlg
public OptionDlg(Kernel kernel, OneOption oneOption)
{
InitializeComponent();
//メニューの項目名をダイアログのタイトルにする
var text = oneOption.MenuStr;
var index = text.LastIndexOf(',');
Text = index != 0 ? text.Substring(index+1) : text;
//(&R)のようなショートカット指定を排除する
index = Text.IndexOf('(');
if (0 <= index) {
Text = Text.Substring(0, index);
}
//&を排除する
Text = Util.SwapChar('&','\b',Text);
_oneOption = oneOption;
oneOption.CreateDlg(panelMain);
buttonCancel.Text = (kernel.IsJp()) ? "キャンセル" : "Cancel";
}
示例7: SetupServiceDlg
public SetupServiceDlg(Kernel kernel)
{
InitializeComponent();
_setupService = new SetupService(kernel);
_kernel = kernel;
Text = (kernel.IsJp()) ?"サービス設定ダイアログ":"Setting Service";
groupBoxInstall.Text = (kernel.IsJp()) ? "サービスへのインストール" : "Registration";
buttonInstall.Text = (kernel.IsJp()) ? "登録" : "Install";
buttonUninstall.Text = (kernel.IsJp()) ? "削除" : "Uninstall";
groupBoxStatus.Text = (kernel.IsJp()) ? "状態" : "Service status";
buttonStart.Text = (kernel.IsJp()) ? "開始" : "Start";
buttonStop.Text = (kernel.IsJp()) ? "停止" : "Stop";
buttonRestart.Text = (kernel.IsJp()) ? "再起動" : "Restart";
groupBoxStartupType.Text = (kernel.IsJp()) ? "スタートアップの種類" : "Startup type";
buttonAutomatic.Text = (kernel.IsJp()) ? "自動" : "Auto";
buttonManual.Text = (kernel.IsJp()) ? "手動" : "Manual";
buttonDisable.Text = (kernel.IsJp()) ? "無効" : "Disable";
DispInit();
}