Example #1
0
        public bool SelectLocation(object sender, LocationWithOptionsEventArgs e)
        {
            bool result = base.SelectLocation(sender, e);

            if (mPicturesOnly != null && !string.IsNullOrEmpty(e.PicturesOnly))
            {
                bool picturesonly = false;
                if (bool.TryParse(e.PicturesOnly, out picturesonly))
                {
                    mPicturesOnly.Checked = picturesonly;
                    result = true;
                }
            }

            if (mBloggersOnly != null && !string.IsNullOrEmpty(e.BloggersOnly))
            {
                bool bloggersonly = false;
                if (bool.TryParse(e.BloggersOnly, out bloggersonly))
                {
                    mBloggersOnly.Checked = bloggersonly;
                    result = true;
                }
            }

            return result;
        }
Example #2
0
        public bool SelectLocation(object sender, LocationWithOptionsEventArgs e)
        {
            bool result = base.SelectLocation(sender, e);

            if (mType != null && !string.IsNullOrEmpty(e.Type))
            {
                mType.ClearSelection();
                ListItem type = mType.Items.FindByValue(e.Type);
                if (type != null)
                {
                    type.Selected = true;
                    result        = true;
                }
            }

            if (mPicturesOnly != null && !string.IsNullOrEmpty(e.PicturesOnly))
            {
                bool picturesonly = false;
                if (bool.TryParse(e.PicturesOnly, out picturesonly))
                {
                    mPicturesOnly.Checked = picturesonly;
                    result = true;
                }
            }

            return(result);
        }
Example #3
0
        public bool SelectLocation(object sender, LocationWithOptionsEventArgs e)
        {
            bool result = base.SelectLocation(sender, e);

            if (mPicturesOnly != null && !string.IsNullOrEmpty(e.PicturesOnly))
            {
                bool picturesonly = false;
                if (bool.TryParse(e.PicturesOnly, out picturesonly))
                {
                    mPicturesOnly.Checked = picturesonly;
                    result = true;
                }
            }

            if (mBloggersOnly != null && !string.IsNullOrEmpty(e.BloggersOnly))
            {
                bool bloggersonly = false;
                if (bool.TryParse(e.BloggersOnly, out bloggersonly))
                {
                    mBloggersOnly.Checked = bloggersonly;
                    result = true;
                }
            }

            return(result);
        }
Example #4
0
        public bool SelectLocation(object sender, LocationWithOptionsEventArgs e)
        {
            bool result = base.SelectLocation(sender, e);

            if (mType != null && !string.IsNullOrEmpty(e.Type))
            {
                result = ListItemManager.TrySelect(mType, e.Type);
            }

            return result;
        }
Example #5
0
        public bool SelectLocation(object sender, LocationWithOptionsEventArgs e)
        {
            bool result = base.SelectLocation(sender, e);

            if (mType != null && !string.IsNullOrEmpty(e.Type))
            {
                result = ListItemManager.TrySelect(mType, e.Type);
            }

            return(result);
        }
Example #6
0
    void History_Navigate(object sender, HistoryEventArgs e)
    {
        if (e.State.HasKeys())
        {
            LocationWithOptionsEventArgs l_args = new LocationWithOptionsEventArgs(e.State);
            l_args.Clear = true;
            LocationSelector.SelectLocation(sender, l_args);
            gridManage.CurrentPageIndex = int.Parse(e.State["page"]);
        }

        gridManage_OnGetDataSource(sender, e);
        gridManage.DataBind();
    }
Example #7
0
 void History_Navigate(object sender, HistoryEventArgs e)
 {
     if (e.State.HasKeys())
     {
         LocationWithOptionsEventArgs l_args = new LocationWithOptionsEventArgs(e.State);
         l_args.Clear = true;
         LocationSelector.SelectLocation(sender, l_args);
         gridManage.CurrentPageIndex = int.Parse(e.State["page"]);
         inputName.Text = e.State["name"];
         atoz.SelectIfChar(inputName.Text);
     }
     else
     {
         LocationSelector.ClearSelection();
         inputName.Text = string.Empty;
         atoz.ClearSelection();
     }
     gridManage_OnGetDataSource(sender, e);
     gridManage.DataBind();
 }
Example #8
0
        public bool SelectLocation(object sender, LocationWithOptionsEventArgs e)
        {
            bool result = base.SelectLocation(sender, e);

            if (e.Clear || (mType != null && !string.IsNullOrEmpty(e.Type)))
            {
                mType.ClearSelection();
                result = ListItemManager.TrySelect(mType, e.Type);
            }

            if (e.Clear || (mPicturesOnly != null && !string.IsNullOrEmpty(e.PicturesOnly)))
            {
                bool picturesonly = false;
                if (bool.TryParse(e.PicturesOnly, out picturesonly))
                {
                    mPicturesOnly.Checked = picturesonly;
                    result = true;
                }
            }

            return(result);
        }
Example #9
0
 void History_Navigate(object sender, HistoryEventArgs e)
 {
     if (e.State.HasKeys())
     {
         LocationWithOptionsEventArgs l_args = new LocationWithOptionsEventArgs(e.State);
         l_args.Clear = true;
         LocationSelector.SelectLocation(sender, l_args);
         gridManage.CurrentPageIndex = int.Parse(e.State["page"]);
         inputName.Text = e.State["name"];
         atoz.SelectIfChar(inputName.Text);
     }
     else
     {
         LocationSelector.ClearSelection();
         inputName.Text = string.Empty;
         atoz.ClearSelection();
     }
     gridManage_OnGetDataSource(sender, e);
     gridManage.DataBind();
 }
Example #10
0
    void History_Navigate(object sender, HistoryEventArgs e)
    {
        if (e.State.HasKeys())
        {
            LocationWithOptionsEventArgs l_args = new LocationWithOptionsEventArgs(e.State);
            l_args.Clear = true;
            LocationSelector.SelectLocation(sender, l_args);
            gridManage.CurrentPageIndex = int.Parse(e.State["page"]);
        }

        gridManage_OnGetDataSource(sender, e);
        gridManage.DataBind();
    }
Example #11
0
        public bool SelectLocation(object sender, LocationWithOptionsEventArgs e)
        {
            bool result = base.SelectLocation(sender, e);

            if (e.Clear || (mType != null && !string.IsNullOrEmpty(e.Type)))
            {
                mType.ClearSelection();
                result = ListItemManager.TrySelect(mType, e.Type);
            }

            if (e.Clear || (mPicturesOnly != null && !string.IsNullOrEmpty(e.PicturesOnly)))
            {
                bool picturesonly = false;
                if (bool.TryParse(e.PicturesOnly, out picturesonly))
                {
                    mPicturesOnly.Checked = picturesonly;
                    result = true;
                }
            }

            return result;
        }
Example #12
0
        public bool SelectLocation(object sender, LocationWithOptionsEventArgs e)
        {
            bool result = base.SelectLocation(sender, e);

            if (mType != null && !string.IsNullOrEmpty(e.Type))
            {
                mType.ClearSelection();
                ListItem type = mType.Items.FindByValue(e.Type);
                if (type != null)
                {
                    type.Selected = true;
                    result = true;
                }
            }

            if (mPicturesOnly != null && !string.IsNullOrEmpty(e.PicturesOnly))
            {
                bool picturesonly = false;
                if (bool.TryParse(e.PicturesOnly, out picturesonly))
                {
                    mPicturesOnly.Checked = picturesonly;
                    result = true;
                }
            }

            return result;
        }