示例#1
0
 private void ProfileSearch(ViewType viewType)
 {
     this.currentSearchUserView = new SearchUserView();
     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)"P"), (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 SearchUserViewModel(viewType, this.TwitterAccountID);
     inlinePopup.Content = (object)this.currentSearchUserView;
     inlinePopup.Closing += new CancelEventHandler(this.searchUserPopup_Closing);
     inlinePopup.Closed += new EventHandler(this.searchUserPopup_Closed);
     IntellisenseExtension.SetTwitterAccountID((TextBoxBase)this.currentSearchUserView.InputEdit, this.TwitterAccountID);
     IntellisenseExtension.SetIsEnabled(this.currentSearchUserView.InputEdit, SettingsData.Instance.UseAutoComplete);
     IntellisenseExtension.SetIgnorePrefix(this.currentSearchUserView.InputEdit, true);
     inlinePopup.ShowAnimated(PlacementMode.Top, (FrameworkElement)SettingsData.Instance.PopupTarget, new Point?());
 }
示例#2
0
 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?());
 }