Example #1
0
        private void PopulateRulers()
        {
            string qs = string.Empty;

            if (HttpContext.Current.Request.QueryString.HasKeys())
            {
                qs = HttpContext.Current.Request.QueryString["user"];
            }

            IDictionaryEnumerator iter = Universe.instance.rulers.GetEnumerator( );

            while (iter.MoveNext( ))
            {
                Ruler r = (Ruler)iter.Value;
                if (!r.Equals(_ruler))
                {
                    ListItem li = new ListItem(r.Name, r.Id.ToString());
                    if (qs != string.Empty && qs.Trim() == r.Name.Trim())
                    {
                        li.Selected = true;
                    }

                    rulers.Items.Add(li);
                }
            }
        }