public void MuteKeyword()
{
if (String.IsNullOrWhiteSpace(SelectedText))
{
Parent.Messenger.RaiseSafe(() =>
new TaskDialogMessage(new TaskDialogOptions
{
Title = MainAreaTimelineResources.MsgMuteKeywordTitle,
MainIcon = VistaTaskDialogIcon.Information,
MainInstruction = MainAreaTimelineResources.MsgMuteKeywordSelectInst,
Content = MainAreaTimelineResources.MsgMuteKeywordSelectContent,
CommonButtons = TaskDialogCommonButtons.Close,
}));
return;
}
var response = QueryMuteMessage(MainAreaTimelineResources.MsgMuteKeywordTitle,
MainAreaTimelineResources.MsgMuteKeywordInstFormat.SafeFormat(SelectedText),
MainAreaTimelineResources.MsgMuteKeywordContent);
if (response.Response.CustomButtonResult != 0) return;
System.Diagnostics.Debug.WriteLine("Mute: " + Status.User.ScreenName);
Setting.Muteds.AddPredicate(new FilterOperatorContains
{
LeftValue = new StatusText(),
RightValue = new StringValue(SelectedText)
});
}