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; }
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); }
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); }
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; }
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); }
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(); }
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(); }
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); }
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(); }
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(); }
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; }
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; }