Beispiel #1
0
        //public int Search(string name_in) {
        //	for (int t = 0; t < faq_.Count; t++)
        //		if (((FAQ)faq_[t]).Name == name_in) // already exists!
        //			return t; // returns it's position
        //
        //	return -1;
        //}
        #endregion
        //---
        #region public Subject[] HowToGetHere_fromRoot();
        public FAQSubject[] HowToGetHere_fromRoot()
        {
            FAQSubject[] HowToGetHere_fromRoot_out;

            int        c;
            FAQSubject _faqsubject_parent;

            #region HowToGetHere_fromRoot_out = new Subject[...];
            _faqsubject_parent = this;
            c = 0;

            do
            {
                //_arraylist.Add(_faqsubject_parent.IDSubject);
                c++;
            } while ((_faqsubject_parent = Parent_ref[_faqsubject_parent.IDFAQSubject_parent]) != null);

            HowToGetHere_fromRoot_out = new FAQSubject[c];
            #endregion
            #region HowToGetHere_fromRoot_out[...] = ...;
            _faqsubject_parent = this;
            c = HowToGetHere_fromRoot_out.Length;

            do
            {
                c--;
                HowToGetHere_fromRoot_out[c] = _faqsubject_parent;
            } while ((_faqsubject_parent = Parent_ref[_faqsubject_parent.IDFAQSubject_parent]) != null);
            #endregion

            return(HowToGetHere_fromRoot_out);
        }
Beispiel #2
0
		public FAQ(
			FAQSubject aggregateloopback_ref_in
		) : base (
			aggregateloopback_ref_in
		) {
			//#region ClaSSe...
			idfaq_ = string.Empty;
			question_ = string.Empty;
			//---
			faqanswers_ = new ArrayList();
			//#endregion
		}
Beispiel #3
0
 public FAQ(
     FAQSubject aggregateloopback_ref_in
     ) : base(
         aggregateloopback_ref_in
         )
 {
     //#region ClaSSe...
     idfaq_    = string.Empty;
     question_ = string.Empty;
     //---
     faqanswers_ = new ArrayList();
     //#endregion
 }
Beispiel #4
0
		//public int Search(string name_in) {
		//	for (int t = 0; t < faq_.Count; t++)
		//		if (((FAQ)faq_[t]).Name == name_in) // already exists!
		//			return t; // returns it's position
		//
		//	return -1;
		//}
		#endregion
		//---
		#region public Subject[] HowToGetHere_fromRoot();
		public FAQSubject[] HowToGetHere_fromRoot() {
			FAQSubject[] HowToGetHere_fromRoot_out;

			int c;
			FAQSubject _faqsubject_parent;
			#region HowToGetHere_fromRoot_out = new Subject[...];
			_faqsubject_parent = this;
			c = 0;

			do {
				//_arraylist.Add(_faqsubject_parent.IDSubject);
				c++;
			} while ((_faqsubject_parent = Parent_ref[_faqsubject_parent.IDFAQSubject_parent]) != null);

			HowToGetHere_fromRoot_out = new FAQSubject[c];
			#endregion
			#region HowToGetHere_fromRoot_out[...] = ...;
			_faqsubject_parent = this;
			c = HowToGetHere_fromRoot_out.Length;

			do {
				c--;
				HowToGetHere_fromRoot_out[c] = _faqsubject_parent;
			} while ((_faqsubject_parent = Parent_ref[_faqsubject_parent.IDFAQSubject_parent]) != null);
			#endregion

			return HowToGetHere_fromRoot_out;
		}