コード例 #1
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            onePage.Add(CreateServerOption(ProtocolKind.Udp, 67, 10, 10)); //�T�[�o��{�ݒ�

            var key = "leaseTime";
            onePage.Add(new OneVal(key, 18000, Crlf.Nextline, new CtrlInt(Lang.Value(key), 8)));
            key = "startIp";
            onePage.Add(new OneVal(key, new Ip(IpKind.V4_0), Crlf.Nextline, new CtrlAddress(Lang.Value(key))));
            key = "endIp";
            onePage.Add(new OneVal(key, new Ip(IpKind.V4_0), Crlf.Nextline, new CtrlAddress(Lang.Value(key))));
            key = "maskIp";
            onePage.Add(new OneVal(key, new Ip("255.255.255.0"), Crlf.Nextline, new CtrlAddress(Lang.Value(key))));
            key = "gwIp";
            onePage.Add(new OneVal(key, new Ip(IpKind.V4_0), Crlf.Nextline, new CtrlAddress(Lang.Value(key))));
            key = "dnsIp0";
            onePage.Add(new OneVal(key, new Ip(IpKind.V4_0), Crlf.Nextline, new CtrlAddress(Lang.Value(key))));
            key = "dnsIp1";
            onePage.Add(new OneVal(key, new Ip(IpKind.V4_0), Crlf.Nextline, new CtrlAddress(Lang.Value(key))));
            key = "useWpad";
            onePage.Add(new OneVal(key, false, Crlf.Contonie, new CtrlCheckBox(Lang.Value(key))));
            onePage.Add(new OneVal("wpadUrl", "http://", Crlf.Nextline, new CtrlTextBox("URL", 37)));

            return onePage;
        }
コード例 #2
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            //nameTag����|�[�g�ԍ���擾���Z�b�g����i�ύX�s�j
            var tmp = NameTag.Split(':');
            var protocolKind = ProtocolKind.Tcp;
            var port = 0;
            var targetServer = "";
            var targetPort = 0;
            if (tmp.Length == 4) {
                //�l������I�ɐݒ�
                protocolKind = (tmp[0] == "Tunnel-TCP") ? ProtocolKind.Tcp : ProtocolKind.Udp;
                port = Convert.ToInt32(tmp[1]);
                targetServer = tmp[2];
                targetPort = Convert.ToInt32(tmp[3]);
            }
            onePage.Add(CreateServerOption(protocolKind, port, 60, 10)); //�T�[�o��{�ݒ�

            var key = "targetPort";
            onePage.Add(new OneVal(key, targetPort, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            key = "targetServer";
            onePage.Add(new OneVal(key, targetServer, Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 50)));
            key = "idleTime";
            onePage.Add(new OneVal(key, 1, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));

            return onePage;
        }
コード例 #3
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            onePage.Add(CreateServerOption(ProtocolKind.Udp, 53, 10, 30)); //サーバ基本設定

            var key = "rootCache";
            onePage.Add(new OneVal(key, "named.ca", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 30)));
            key = "useRD";
            onePage.Add(new OneVal(key, true, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));

            var list = new ListVal();
            key = "soaMail";
            list.Add(new OneVal(key, "postmaster", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 30)));
            key = "soaSerial";
            list.Add(new OneVal(key, 1, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            key = "soaRefresh";
            list.Add(new OneVal(key, 3600, Crlf.Contonie, new CtrlInt(Lang.Value(key), 5)));
            key = "soaRetry";
            list.Add(new OneVal(key, 300, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            key = "soaExpire";
            list.Add(new OneVal(key, 360000, Crlf.Contonie, new CtrlInt(Lang.Value(key), 5)));
            key = "soaMinimum";
            list.Add(new OneVal(key, 3600, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            key = "GroupSoa";
            onePage.Add(new OneVal(key, null, Crlf.Nextline, new CtrlGroup(Lang.Value(key), list)));

            return onePage;
        }
コード例 #4
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);
            onePage.Add(CreateServerOption(ProtocolKind.Tcp, 25, 30, 10)); //サーバ基本設定

            var key = "domainName";
            onePage.Add(new OneVal(key, "example.com", Crlf.Nextline,new CtrlTextBox(Lang.Value(key), 50)));
            key = "bannerMessage";
            onePage.Add(new OneVal(key, "$s SMTP $p $v; $d", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 50)));
            key = "receivedHeader";
            onePage.Add(new OneVal(key, "from $h ([$a]) by $s with SMTP id $i for <$t>; $d", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 50)));
            key = "sizeLimit";
            onePage.Add(new OneVal(key, 5000, Crlf.Nextline, new CtrlInt(Lang.Value(key), 8)));
            key = "errorFrom";
            onePage.Add(new OneVal(key, "root@local", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 50)));
            key = "useNullFrom";
            onePage.Add(new OneVal(key, false, Crlf.Contonie, new CtrlCheckBox(Lang.Value(key))));
            key = "useNullDomain";
            onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
            key = "usePopBeforeSmtp";
            onePage.Add(new OneVal(key, false, Crlf.Contonie, new CtrlCheckBox(Lang.Value(key))));
            key = "timePopBeforeSmtp";
            onePage.Add(new OneVal(key, 10, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            key = "useCheckFrom";
            onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));

            return onePage;
        }
コード例 #5
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            onePage.Add(CreateServerOption(ProtocolKind.Tcp, 5050, 30, 10)); //サーバ基本設定

            return onePage;
        }
コード例 #6
0
ファイル: OptionMailBox.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page1(string name, string title,Kernel kernel)
 {
     var onePage = new OnePage(name, title);
     var key = "dir";
     onePage.Add(new OneVal(key, "", Crlf.Nextline, new CtrlFolder(Lang.Value(key),40,kernel)));
     key = "useDetailsLog";
     onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox((Lang.Value(key)))));
     return onePage;
 }
コード例 #7
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            onePage.Add(CreateServerOption(ProtocolKind.Tcp, 10001, 60, 1)); //�T�[�o��{�ݒ�
            var key = "password";
            onePage.Add(new OneVal(key, "", Crlf.Nextline, new CtrlHidden(Lang.Value(key), 20)));
            return onePage;
        }
コード例 #8
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            onePage.Add(CreateServerOption(ProtocolKind.Tcp, 5060, 30, 30)); //サーバ基本設定
            var key = "sampleText";
            onePage.Add(new OneVal(key, "Sample Server : ", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 60)));

            return onePage;
        }
コード例 #9
0
ファイル: OptionDnsDomain.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page1(string name, string title,Kernel kernel)
 {
     var onePage = new OnePage(name, title);
     var list = new ListVal();
     var key = "name";
     list.Add(new OneVal(key, "", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 80)));
     key = "authority";
     list.Add(new OneVal(key, true, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     onePage.Add(new OneVal("domainList", null, Crlf.Nextline, new CtrlDat("", list, 400, Lang.LangKind)));
     return onePage;
 }
コード例 #10
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            onePage.Add(CreateServerOption(ProtocolKind.Tcp, 8023, 60, 10)); //�T�[�o��{�ݒ�

            var key = "idleTime";
            onePage.Add(new OneVal(key, 1, Crlf.Contonie, new CtrlInt(Lang.Value(key), 5)));

            return onePage;
        }
コード例 #11
0
ファイル: OptionMl.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            var list = new ListVal();
            var key = "user";
            list.Add(new OneVal(key, "", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 250)));
            key = "mlList";
            onePage.Add(new OneVal(key, null, Crlf.Nextline, new CtrlDat(Lang.Value(key), list, 250, Lang.LangKind)));

            return onePage;
        }
コード例 #12
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page2(string name, string title, Kernel kernel)
 {
     var onePage = new OnePage(name, title);
     var listVal = new ListVal();
     var key = "fromFolder";
     listVal.Add(new OneVal(key, "", Crlf.Nextline, new CtrlFolder(Lang.Value(key), 70, kernel)));
     key = "toFolder";
     listVal.Add(new OneVal(key, "", Crlf.Nextline, new CtrlFolder(Lang.Value(key), 70, kernel)));
     key = "mountList";
     onePage.Add(new OneVal(key, null, Crlf.Nextline, new CtrlDat(Lang.Value(key), listVal, 360, Lang.LangKind)));
     return onePage;
 }
コード例 #13
0
ファイル: OptionMailBox.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page2(string name, string title)
 {
     var onePage = new OnePage(name, title);
     var listVal = new ListVal();
     var key = "userName";
     listVal.Add(new OneVal(key, "", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 30)));
     key = "password";
     listVal.Add(new OneVal(key, "", Crlf.Nextline, new CtrlHidden(Lang.Value(key), 30)));
     key = "user";
     onePage.Add(new OneVal(key, null, Crlf.Nextline, new CtrlDat(Lang.Value(key), listVal, 250, Lang.LangKind)));
     return onePage;
 }
コード例 #14
0
ファイル: OptionDnsResource.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page1(string name, string title,Kernel kernel)
 {
     var onePage = new OnePage(name, title);
     var list = new ListVal();
     list.Add(new OneVal("type", 0, Crlf.Nextline, new CtrlComboBox("Type", new [] { "A(PTR)", "NS", "MX", "CNAME", "AAAA" },80)));
     list.Add(new OneVal("name", "", Crlf.Contonie, new CtrlTextBox("Name", 30)));
     list.Add(new OneVal("alias", "", Crlf.Nextline, new CtrlTextBox("Alias", 30)));
     list.Add(new OneVal("address", "", Crlf.Contonie, new CtrlTextBox("Address", 30)));
     list.Add(new OneVal("priority", 10, Crlf.Nextline, new CtrlInt("Priority", 5)));
     onePage.Add(new OneVal("resourceList", null, Crlf.Nextline, new CtrlOrgDat("", list, 350, Lang.LangKind)));
     return onePage;
 }
コード例 #15
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page1(string name, string title)
 {
     var onePage = new OnePage(name, title);
     onePage.Add(CreateServerOption(ProtocolKind.Tcp, 110, 30, 10)); //�T�[�o��{�ݒ�
     var key = "bannerMessage";
     onePage.Add(new OneVal(key, "$p (Version $v) ready", Crlf.Nextline, new CtrlTextBox(Lang.Value(key),80)));
     key = "authType";
     onePage.Add(new OneVal(key, 0, Crlf.Nextline, new CtrlRadio(Lang.Value(key), new[] { Lang.Value(key + "1"), Lang.Value(key + "2"), Lang.Value(key + "3") }, 600, 2)));
     key = "authTimeout";
     onePage.Add(new OneVal(key, 30, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
     return onePage;
 }
コード例 #16
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            onePage.Add(CreateServerOption(ProtocolKind.Tcp, 8025, 60, 10)); //サーバ基本設定
            var key = "targetPort";
            onePage.Add(new OneVal(key, 25, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            key = "targetServer";
            onePage.Add(new OneVal(key, "", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 50)));
            key = "idleTime";
            onePage.Add(new OneVal(key, 1, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));

            return onePage;
        }
コード例 #17
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page1(string name, string title,Kernel kernel)
 {
     var onePage = new OnePage(name, title);
     onePage.Add(CreateServerOption(ProtocolKind.Udp, 69, 60, 10)); //サーバ基本設定
     var key = "workDir";
     onePage.Add(new OneVal(key, "", Crlf.Nextline, new CtrlFolder(Lang.Value(key), 60, kernel)));
     key = "read";
     onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     key = "write";
     onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     key = "override";
     onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     return onePage;
 }
コード例 #18
0
ファイル: OptionLog.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page2(string name, string title)
        {
            var onePage = new OnePage(name, title);
            var key = "isDisplay";
            onePage.Add(new OneVal(key, 1, Crlf.Nextline, new CtrlRadio(Lang.Value(key), new[] { Lang.Value(key + "1"), Lang.Value(key + "2") }, OptionDlg.Width() - 15, 2)));
            var list = new ListVal();

            key = "Character";
            list.Add(new OneVal(key, "", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 50)));
            key = "limitString";
            onePage.Add(new OneVal(key, null, Crlf.Nextline, new CtrlDat(Lang.Value(key), list, 230, Lang.LangKind)));
            key = "useLimitString";
            onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
            return onePage;
        }
コード例 #19
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title,Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            onePage.Add(CreateServerOption(ProtocolKind.Tcp, 21, 30, 50)); //�T�[�o��{�ݒ�
            var key = "bannerMessage";
            onePage.Add(new OneVal(key, "FTP ( $p Version $v ) ready", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 80)));
            //���C�u�h�A���ʎd�l
            //onePage.Add(new OneVal(new ValType(CRLF.NEXTLINE, VTYPE.FILE, (IsJp()) ? "�t�@�C����M���ɋN������X�N���v�g" : "auto run acript", 250,kernel), "autoRunScript","c:\\test.bat"));
            key = "useSyst";
            onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
            key = "reservationTime";
            onePage.Add(new OneVal(key, 5000, Crlf.Nextline, new CtrlInt(Lang.Value(key), 6)));
            return onePage;
        }
コード例 #20
0
ファイル: OptionOneMl.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page1(string name, string title, Kernel kernel)
 {
     var onePage = new OnePage(name, title);
     var key = "manageDir";
     onePage.Add(new OneVal(key, "", Crlf.Nextline, new CtrlFolder(Lang.Value(key),80, kernel)));
     key = "useDetailsLog";
     onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     key = "title";
     onePage.Add(new OneVal(key, 5, Crlf.Nextline, new CtrlComboBox(Lang.Value(key), new[] { "(NAME)", "[NAME]", "(00000)", "[00000]", "(NAME:00000)", "[NAME:00000]", "none" }, 100)));
     key = "maxGet";
     onePage.Add(new OneVal(key, 10, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
     key = "maxSummary";
     onePage.Add(new OneVal(key, 100, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
     key = "autoRegistration";
     onePage.Add(new OneVal(key, true, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     return onePage;
 }
コード例 #21
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page2(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);
            var l = new ListVal();
            var key = "mail";
            l.Add(new OneVal(key, "", Crlf.Nextline,new CtrlTextBox(Lang.Value(key), 30)));
            key = "server";
            l.Add(new OneVal(key, "", Crlf.Contonie, new CtrlTextBox(Lang.Value(key), 30)));
            key = "dstPort";
            l.Add(new OneVal(key, 25, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            key = "address";
            l.Add(new OneVal(key, "", Crlf.Nextline,new CtrlTextBox(Lang.Value(key), 30)));
            key = "specialUser";
            onePage.Add(new OneVal(key, null, Crlf.Nextline, new CtrlDat(Lang.Value(key), l, 360, Lang.LangKind)));

            return onePage;
        }
コード例 #22
0
ファイル: OptionTunnel.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            var l = new ListVal();
            var key = "protocol";
            l.Add(new OneVal(key, 0, Crlf.Nextline, new CtrlComboBox(Lang.Value(key), new[] { "TCP", "UDP" }, 100)));
            key = "srcPort";
            l.Add(new OneVal(key, 0, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            key = "server";
            l.Add(new OneVal(key, "", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 30)));
            key = "dstPort";
            l.Add(new OneVal(key, 0, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            onePage.Add(new OneVal("tunnelList", null, Crlf.Nextline, new CtrlDat("", l, 380, Lang.LangKind)));

            return onePage;
        }
コード例 #23
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page2(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            var key = "useMacAcl";
            onePage.Add(new OneVal(key, false, Crlf.Nextline,new CtrlCheckBox(Lang.Value(key))));

            var l = new ListVal();
            key = "macAddress";
            l.Add(new OneVal(key, "", Crlf.Nextline,new CtrlTextBox(Lang.Value(key), 50)));
            key = "v4Address";
            l.Add(new OneVal(key, new Ip(IpKind.V4_0), Crlf.Nextline, new CtrlAddress(Lang.Value(key))));
            key = "macName";
            l.Add(new OneVal(key, "", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 50)));
            key = "macAcl";
            onePage.Add(new OneVal(key, null, Crlf.Nextline,new CtrlDat(Lang.Value(key), l, 250, Lang.LangKind)));

            return onePage;
        }
コード例 #24
0
ファイル: OptionOneMl.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page2(string name, string title, Kernel kernel)
 {
     var onePage = new OnePage(name, title);
     var l = new ListVal();
     var key = "name";
     l.Add(new OneVal(key, "", Crlf.Contonie, new CtrlTextBox(Lang.Value(key), 20)));
     key = "address";
     l.Add(new OneVal(key, "", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 20)));
     key = "manager";
     l.Add(new OneVal(key, false, Crlf.Contonie, new CtrlCheckBox(Lang.Value(key))));
     key = "reacer";
     l.Add(new OneVal(key, true, Crlf.Contonie, new CtrlCheckBox(Lang.Value(key))));
     key = "contributor";
     l.Add(new OneVal(key, true, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     key = "pass";
     l.Add(new OneVal(key, "", Crlf.Nextline, new CtrlHidden(Lang.Value(key), 10)));
     key = "memberList";
     onePage.Add(new OneVal(key, null, Crlf.Nextline, new CtrlOrgMemberDat(Lang.Value(key), l, 390,Lang.LangKind)));
     return onePage;
 }
コード例 #25
0
ファイル: OptionVirtualHost.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);
            var list1 = new ListVal();
            var key = "protocol";
            list1.Add(new OneVal(key, 0, Crlf.Nextline,new CtrlComboBox(Lang.Value(key), new[]{"HTTP", "HTTPS"}, 100)));
            key = "host";
            list1.Add(new OneVal(key, "", Crlf.Contonie, new CtrlTextBox(Lang.Value(key), 30)));
            key = "port";
            list1.Add(new OneVal(key, 80, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
            onePage.Add(new OneVal("hostList", null, Crlf.Nextline, new CtrlOrgDat("", list1, 600, 270, Lang.LangKind)));
            var list2 = new ListVal();
            key = "certificate";
            list2.Add(new OneVal(key, "", Crlf.Nextline,new CtrlFile(Lang.Value(key), 50, kernel)));
            key = "privateKeyPassword";
            list2.Add(new OneVal(key, "", Crlf.Nextline,new CtrlHidden(Lang.Value(key), 20)));
            key = "groupHttps";
            onePage.Add(new OneVal(key, null, Crlf.Nextline,new CtrlGroup(Lang.Value(key), list2)));

            return onePage;
        }
コード例 #26
0
ファイル: OptionLog.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page1(string name, string title, Kernel kernel)
 {
     var onePage = new OnePage(name, title);
     var key = "normalLogKind";
     onePage.Add(new OneVal(key, 2, Crlf.Nextline, new CtrlComboBox(Lang.Value(key), new[] { Lang.Value(key + "1"), Lang.Value(key + "2"), Lang.Value(key + "3") }, 200)));
     key = "secureLogKind";
     onePage.Add(new OneVal(key, 2, Crlf.Nextline, new CtrlComboBox(Lang.Value(key), new[] { Lang.Value(key + "1"), Lang.Value(key + "2"), Lang.Value(key + "3") }, 200)));
     key = "saveDirectory";
     onePage.Add(new OneVal(key, "", Crlf.Nextline, new CtrlFolder(Lang.Value(key), 60, kernel)));
     key = "useLogFile";
     onePage.Add(new OneVal(key, true, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     key = "useLogClear";
     onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     key = "saveDays";
     onePage.Add(new OneVal(key, 31, Crlf.Nextline, new CtrlInt(Lang.Value(key), 3)));
     key = "linesMax";
     onePage.Add(new OneVal(key, 3000, Crlf.Nextline, new CtrlInt(Lang.Value(key) , 5)));
     key = "linesDelete";
     onePage.Add(new OneVal(key, 2000, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
     onePage.Add(new OneVal("font", null, Crlf.Nextline, new CtrlFont("", Lang.LangKind)));
     return onePage;
 }
コード例 #27
0
ファイル: OptionBasic.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page1(string name, string title, Kernel kernel)
        {
            var onePage = new OnePage(name, title);

            var key = "useExitDlg";
            onePage.Add(new OneVal(key, false, Crlf.Nextline,new CtrlCheckBox(Lang.Value(key))));
            key = "useLastSize";
            onePage.Add(new OneVal(key, true, Crlf.Nextline,new CtrlCheckBox(Lang.Value(key))));
            key = "isWindowOpen";
            onePage.Add(new OneVal(key, true, Crlf.Nextline,new CtrlCheckBox(Lang.Value(key))));
            key = "useAdminPassword";
            onePage.Add(new OneVal(key, false, Crlf.Nextline,new CtrlCheckBox(Lang.Value(key))));
            key = "password";
            onePage.Add(new OneVal("password", "", Crlf.Nextline, new CtrlHidden(Lang.Value(key), 20)));
            key = "serverName";
            onePage.Add(new OneVal("serverName", "", Crlf.Nextline, new CtrlTextBox(Lang.Value(key), 20)));
            key = "editBrowse";
            onePage.Add(new OneVal("editBrowse", false, Crlf.Nextline,new CtrlCheckBox(Lang.Value(key))));
            key = "lang";
            onePage.Add(new OneVal("lang", 2, Crlf.Nextline,new CtrlComboBox(Lang.Value(key), new[] { "Japanese", "English", "Auto" }, 80)));
            return onePage;
        }
コード例 #28
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
        private OnePage Page2(string name, string title)
        {
            var onePage = new OnePage(name, title);
            var key = "useChps";
                onePage.Add(new OneVal(key, false,Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
                key = "minimumLength";
                onePage.Add(new OneVal(key, 8, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
                key = "disableJoe";
                onePage.Add(new OneVal(key, true, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));

                var list = new ListVal();
                key = "useNum";
                list.Add(new OneVal(key, true, Crlf.Contonie, new CtrlCheckBox(Lang.Value(key))));
                key = "useSmall";
                list.Add(new OneVal(key, true, Crlf.Contonie, new CtrlCheckBox(Lang.Value(key))));
                key = "useLarge";
                list.Add(new OneVal(key, true, Crlf.Contonie, new CtrlCheckBox(Lang.Value(key))));
                key = "useSign";
                list.Add(new OneVal(key, true, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
                key = "groupNeed";
                onePage.Add(new OneVal(key, null, Crlf.Nextline, new CtrlGroup(Lang.Value(key), list)));
            return onePage;
        }
コード例 #29
0
ファイル: Option.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page3(string name, string title)
 {
     var onePage = new OnePage(name, title);
     var key = "useAutoAcl";
     onePage.Add(new OneVal(key, false, Crlf.Nextline, new CtrlCheckBox(Lang.Value(key))));
     key = "autoAclLabel";
     onePage.Add(new OneVal(key, Lang.Value(key), Crlf.Nextline, new CtrlLabel(Lang.Value(key))));
     key = "autoAclMax";
     onePage.Add(new OneVal(key, 5, Crlf.Contonie, new CtrlInt(Lang.Value(key), 5)));
     key = "autoAclSec";
     onePage.Add(new OneVal(key, 60, Crlf.Nextline, new CtrlInt(Lang.Value(key), 5)));
     return onePage;
 }
コード例 #30
0
ファイル: OptionSample.cs プロジェクト: jsakamoto/bjd5
 private OnePage Page1(String name, String title)
 {
     var onePage = new OnePage(name, title);
     onePage.Add(CreateServerOption(ProtocolKind.Tcp, 999, 30, 50)); //サーバ基本設定
     return onePage;
 }