//listValの初期化 // protected void Init() { // // // //「ACL」タブの追加 // if (_useAcl) { // var list = new ListVal(); // list.Add(new OneVal("enableAcl", 0, Crlf.Nextline, new CtrlRadio((Kernel.IsJp()) ? "指定したアドレスからのアクセスのみを" : "Access of ths user who appoint it", new List<string> { (Kernel.IsJp()) ? "許可する" : "Allow", (Kernel.IsJp()) ? "禁止する" : "Deny" }, OptionDlg.Width() - 15, 2))); // {//DAT // var l = new ListVal(); // l.Add(new OneVal("aclName", "", Crlf.Nextline, new CtrlTextBox((Kernel.IsJp()) ? "名前(表示名)" : "Name(Display)", 200))); // l.Add(new OneVal("aclAddress", "", Crlf.Nextline, new CtrlTextBox((Kernel.IsJp()) ? "アドレス" : "Address", 300))); // list.Add(new OneVal("acl", null, Crlf.Nextline, new CtrlDat((Kernel.IsJp()) ? "利用者(アドレス)の指定" : "Access Control List", l, 600, 340, Kernel.IsJp()))); // }//DAT // Add(new OneVal("ACL", list, Crlf.Nextline, new CtrlTabPage("ACL"))); // } // // //名前重複の確認 + ar.Valsの初期化 // foreach (var a in ListVal.Vals) { // if (1 != ListVal.Vals.Count(o => o.Name == a.Name)) { // throw new Exception(string.Format("Name repetition {0}-{1}\r\n", this, a.Name)); // } // } // // //レジストリからの読み込み // _iniDb.Read(NameTag, ListVal); // } // protected OnePage PageAcl() { var onePage = new OnePage("ACL", "ACL"); onePage.Add(new OneVal("enableAcl", 0, Crlf.Nextline, new CtrlRadio(_isJp ? "指定したアドレスからのアクセスのみを": "Access of ths user who appoint it", new[] { _isJp ? "許可する" : "Allow", _isJp ? "禁止する" : "Deny" }, OptionDlg.Width() - 15, 2))); var list = new ListVal(); list.Add(new OneVal("aclName", "", Crlf.Nextline, new CtrlTextBox(_isJp ? "名前(表示名)" : "Name(Display)", 20))); list.Add(new OneVal("aclAddress", "", Crlf.Nextline, new CtrlTextBox(_isJp ? "アドレス" : "Address", 20))); onePage.Add(new OneVal("acl", null, Crlf.Nextline, new CtrlDat(_isJp ? "利用者(アドレス)の指定" : "Access Control List", list, 310, Lang.LangKind))); return(onePage); }
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); }