void Stream_StatusUpdated(object sender, StatusUpdateEventArgs e) { ShowViral = false; ReplyTo = null; if (e.Action == StatusUpdateAction.Reply) { ReplyTo = e.Status; } SelectedChannels.Clear(); SelectedChannels.Add(e.ChannelId); PART_StatusUpdateTextbox.Text = e.StatusText; FocusHelper.Focus(PART_StatusUpdateTextbox); // Move caret to end of textbox PART_StatusUpdateTextbox.SelectionStart = PART_StatusUpdateTextbox.Text.Length; OnPropertyChanged("AllStatusChannels"); OnPropertyChanged("ReplyTo"); OnPropertyChanged("ShowViral"); OnPropertyChanged("HasTwitter"); }
void LoadSavedSelection() { SelectedChannels.Clear(); SelectedChannels.AddRange(StatusUpdateControl.GetSavedSelection()); OnPropertyChanged("HasTwitter"); }