Beispiel #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;
         }
     }
 }
Beispiel #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;
         }
     }
 }
Beispiel #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;
         }
     }
 }
Beispiel #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;
         }
     }
 }
Beispiel #5
0
        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);
                }
            }
        }
 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;
         }
     }
 }
Beispiel #7
0
 protected void AbstractOnChange(OneCtrl oneCtrl)
 {
 }