private void searchPopup_Closed(object sender, EventArgs e)
 {
     this.currentSearchCriteriaView = (SearchCriteriaView)null;
 }
 public void Search(ViewType viewType)
 {
     this.currentSearchCriteriaView = new SearchCriteriaView();
     if (viewType == ViewType.Column)
         Messenger.Default.Send<GenericMessage<object>>(new GenericMessage<object>((object)"A"), (object)this.MultiAccountifyToken((System.Enum)ViewModelMessages.SetPopupTarget));
     else if (viewType == ViewType.Popup)
         Messenger.Default.Send<GenericMessage<object>>(new GenericMessage<object>((object)"S"), (object)this.MultiAccountifyToken((System.Enum)ViewModelMessages.SetPopupTarget));
     InlinePopup inlinePopup = new InlinePopup();
     inlinePopup.Style = (Style)System.Windows.Application.Current.FindResource((object)"MetroInlinePopup");
     inlinePopup.DataContext = (object)new SearchCriteriaViewModel(viewType, this.TwitterAccountID);
     inlinePopup.Content = (object)this.currentSearchCriteriaView;
     inlinePopup.Closing += new CancelEventHandler(this.searchPopup_Closing);
     inlinePopup.Closed += new EventHandler(this.searchPopup_Closed);
     inlinePopup.ShowAnimated(PlacementMode.Top, (FrameworkElement)SettingsData.Instance.PopupTarget, new Point?());
 }