Exemple #1
0
 //public CtrlDat(string help, ListVal listVal, int height, bool isJp) : base(help){
 public CtrlDat(string help, ListVal listVal, int height, LangKind langKind)
     : base(help)
 {
     _listVal = listVal;
     _height = height;
     //_isJp = isJp;
     _lang = new Lang(langKind,"CtrlDat");
 }
Exemple #2
0
        public OneOption(bool isJp,string path, string nameTag)
        {
            ListVal = new ListVal();
            _isJp = isJp;
            Path = path;
            NameTag = nameTag;
            //Ver6.1.6
            Lang = new Lang(isJp ? LangKind.Jp : LangKind.En, "Option" + nameTag);

            ListVal.OnChange += ArOnChange;
        }
Exemple #3
0
        //�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");
        }
Exemple #4
0
 //public CtrlFont(string help, bool isJp) : base(help){
 public CtrlFont(string help, LangKind  langKind)
     : base(help)
 {
     _lang = new Lang(langKind,"CtrlFont");
     //_isJp = isJp;
 }