Exemple #1
0
/*-----------------------------------------------------*/

        public void Validate_Last(String aKey, String aLabel, String aText,
                                  String aURL)
        {
            if (Count > 1)
            {
                RemoveAt(Count - 1);
            }

            int    cnt = Count;
            cCrumb aDelCrumb;

            while (cnt > 1)
            {
                aDelCrumb = Crumb_From_Index(cnt - 1);
                if (aDelCrumb.Key == aKey)
                {
                    break;
                }
                cnt--;
            }
            while (cnt <= Count && Count > 1)
            {
                RemoveAt(Count - 1);
            }

            cCrumb aCrumb = new cCrumb();

            aCrumb.Key   = aKey;
            aCrumb.Label = aLabel;
            aCrumb.Text  = aText;
            aCrumb.URL   = aURL;
            Add(aCrumb);

            Visible = true;
        }
Exemple #2
0
/*-----------------------------------------------------*/

        public void Insert(cCrumb aCrumb, int aIndex)
        {
            if (aIndex < 0 || aIndex >= Count)
            {
                Add(aCrumb);
            }
            else
            {
                mCrumbTbl.Insert(aIndex, aCrumb);
            }
        }
Exemple #3
0
/*-----------------------------------------------------*/
///<summary>
///validates key and date to manage crumb list
///</summary>
        public void Validate(String aKey, String aLabel, String aText,
                             String aURL)
        {
            Clear(aKey);

            cCrumb aCrumb = new cCrumb();

            aCrumb.Key   = aKey;
            aCrumb.Label = aLabel;
            aCrumb.Text  = aText;
            aCrumb.URL   = aURL;
            Add(aCrumb);

            Visible = true;
        }
Exemple #4
0
/*====================================================*/

        public void Add(cCrumb aCrumb)
        {
            mCrumbTbl.Add(aCrumb);
        }
Exemple #5
0
/*-----------------------------------------------------*/

        public void Remove(cCrumb aCrumb)
        {
            mCrumbTbl.Remove(aCrumb);
        }