예제 #1
0
 public CtrlOrgDat(string help, ListVal listVal, int width, int height, LangKind langKind)
     : base(help, listVal, height, langKind)
 {
     foreach (var o in listVal) {
         switch (o.Name){
             case "protocol":
                 _protocol = o.OneCtrl;
                 break;
             case "port":
                 _port = o.OneCtrl;
                 break;
         }
     }
 }
예제 #2
0
 public CtrlOrgDat(string help, ListVal listVal, int height, LangKind langKkind)
     : base(help, listVal, height, langKkind)
 {
     foreach (OneVal o in listVal.GetList(null)){
         if (o.Name == "type"){
             _type = o.OneCtrl;
         } else if (o.Name == "name"){
             _name = o.OneCtrl;
         } else if (o.Name == "alias"){
             _alias = o.OneCtrl;
         } else if (o.Name == "address"){
             _address = o.OneCtrl;
         } else if (o.Name == "priority"){
             _priority = o.OneCtrl;
         }
     }
 }
예제 #3
0
 public CtrlOrgHostDat(string help, ListVal listVal, int height, LangKind langKind)
     : base(help, listVal, height, langKind)
 {
     foreach (var o in listVal) {
         if (o.Name == "transferTarget") {
             _target = o.OneCtrl;
         } else if (o.Name == "transferServer") {
             _server = o.OneCtrl;
         } else if (o.Name == "transferPort") {
             _port = o.OneCtrl;
         } else if (o.Name == "transferSmtpAuth") {
             _smtpAuth = o.OneCtrl;
         } else if (o.Name == "transferUser") {
             _user = o.OneCtrl;
         } else if (o.Name == "transferPass") {
             _pass = o.OneCtrl;
         }
     }
 }
예제 #4
0
 public CtrlOrgMemberDat(string help, ListVal listVal, int height, LangKind langKind)
     : base(help, listVal, height, langKind)
 {
     foreach (var o in listVal) {
         if (o.Name == "name") {
             _name = o.OneCtrl;
         } else if (o.Name == "address") {
             _address = o.OneCtrl;
         } else if (o.Name == "manager") {
             _manager = o.OneCtrl;
         } else if (o.Name == "reacer") {
             _reacer = o.OneCtrl;
         } else if (o.Name == "contributor") {
             _contributor = o.OneCtrl;
         } else if (o.Name == "pass") {
             _pass = o.OneCtrl;
         }
     }
 }
예제 #5
0
파일: OneVal.cs 프로젝트: jsakamoto/bjd5
        public OneVal(String name, Object value, Crlf crlf, OneCtrl oneCtrl)
        {
            Name = name;
            Value = value;
            Crlf = crlf;
            OneCtrl = oneCtrl;

            oneCtrl.Name = name;

            //*************************************************************
            //仕様上、階層構造をなすOneValの名前は、ユニークである必要がる
            //プログラム作成時に重複を発見できるように、重複があった場合、ここでエラーをポップアップする
            //*************************************************************

            //名前一覧
            var tmp = new List<String>();

            //このlistの中に重複が無いかどうかをまず確認する
            List<OneVal> list = GetList(null);
            foreach (OneVal o in list){
                if (0 <= tmp.IndexOf(o.Name)){
                    //名前一覧に重複は無いか
                    Msg.Show(MsgKind.Error, String.Format("OneVal(OnePage)の名前に重複があります {0}", o.Name));
                }
                tmp.Add(o.Name); //名前一覧への蓄積
                //			if (o != this) { // 自分自身は検査対象外とする
                //				if (name.equals(o.getName())) {
                //					Msg.Show(MsgKind.Error, string.Format("OneVal(OnePage)の名前に重複があります %s", name));
                //				}
                //			}
            }
            //CtrlTabPageの場合は、array+ist<OnePage>の重複を確認する
            if (oneCtrl.GetCtrlType() == CtrlType.TabPage){
                foreach (OnePage onePage in ((CtrlTabPage) oneCtrl).PageList){
                    if (0 <= tmp.IndexOf(onePage.Name)){
                        //名前一覧に重複は無いか
                        Msg.Show(MsgKind.Error, string.Format("OneVal(OnePage)の名前に重複があります {0}", onePage.Name));
                    }
                    tmp.Add(onePage.Name);
                }
            }
        }
예제 #6
0
 public CtrlOrgAutoReceptionDat(string help, ListVal listVal, int height, LangKind langKind)
     : base(help, listVal, height, langKind)
 {
     foreach (var o in listVal) {
         if (o.Name == "fetchReceptionInterval") {
             _receptionInterval = o.OneCtrl;
         } else if (o.Name == "fetchServer") {
             _server = o.OneCtrl;
         } else if (o.Name == "fetchPort") {
             _port = o.OneCtrl;
         } else if (o.Name == "fetchUser") {
             _user = o.OneCtrl;
         } else if (o.Name == "fetchPass") {
             _pass = o.OneCtrl;
         } else if (o.Name == "fetchLocalUser") {
             _localUser = o.OneCtrl;
         } else if (o.Name == "fetchSynchronize") {
             _synchronize = o.OneCtrl;
         } else if (o.Name == "fetchTime") {
             _time = o.OneCtrl;
         }
     }
 }
예제 #7
0
 protected void AbstractOnChange(OneCtrl oneCtrl)
 {
 }