private void PerformSearch(ViewState.View origView, string search)
{
if (this.view.CurrentView == origView)
{
if (string.IsNullOrEmpty(search))
{
if (this.view.CurrentViewData != null)
{
this.view.StoreView(null);
}
}
else
{
if (this.view.CurrentViewData == null)
{
this.view.StoreView(search);
}
else
{
this.view.CurrentViewData = search;
}
}
this.dataSearch.DownloadQuery = search;
this.InitDownloadList();
this.SetViewDefaults();
}
}