private void Button_Click(object sender, RoutedEventArgs e) { if (TypeInput == 1) { ThreadView.GetInstance().UpdateContentTextbox(((Button)sender).Tag.ToString()); } else if (TypeInput == 2) { MessageView.GetInstance().UpdateContentTextbox(((Button)sender).Tag.ToString()); } else if (TypeInput == 3) { ListThreadView.GetInstance().UpdateContentTextbox(((Button)sender).Tag.ToString()); } }
public void NavigateManager(string url) { if (url.Contains("{Image}")) { } else if (url.Contains("{Url}")) { string urlResponse = url.Replace("{Url}", string.Empty); MessageView.GetInstance().OpenBrowser(urlResponse); } else if (url.Contains("{Url-Quote-")) { MessageView.GetInstance().DisplayPopupPostMessage(); } }