Beispiel #1
0
 public void NavigateManager(string url)
 {
     if (url.Contains("{Image}"))
     {
     }
     else if (url.Contains("{Url}"))
     {
         string urlResponse = url.Replace("{Url}", string.Empty);
         ThreadView.GetInstance().SetUpPopupWebview(urlResponse);
     }
     else if (url.Contains("{Url-Quote-"))
     {
         var Id = url.Split('=').LastOrDefault();
         ThreadView.GetInstance().SetContentForPostMessage(Id);
     }
     else if (url.Contains("{Url-MultiQuote-"))
     {
         var Id   = url.Split('=').LastOrDefault();
         var temp = Resource.STR_2C + Id;
         if (appSetting.Cookies_Vbmultiquote.Contains(temp))
         {
             appSetting.Cookies_Vbmultiquote = appSetting.Cookies_Vbmultiquote.Replace(temp, Resource.STR_EMPTY);
             DialogResult.DialogOnlyOk("Removed " + Id.ToString() + " from quote list!");
         }
         else
         {
             appSetting.Cookies_Vbmultiquote += temp;
             DialogResult.DialogOnlyOk("Added " + Id.ToString() + " to quote list!");
         }
     }
     else if (url.Contains("{Url-Quick-"))
     {
         ThreadView.GetInstance().DisplayPopupPostMessage();
     }
 }
Beispiel #2
0
        private void BtnVote_Click(object sender, RoutedEventArgs e)
        {
            int rating = 0;

            if (Rdo5Star.IsChecked == true)
            {
                rating = 5;
            }
            else if (Rdo4Star.IsChecked == true)
            {
                rating = 4;
            }
            else if (Rdo3Star.IsChecked == true)
            {
                rating = 3;
            }
            else if (Rdo2Star.IsChecked == true)
            {
                rating = 2;
            }
            else if (Rdo1Star.IsChecked == true)
            {
                rating = 1;
            }

            ThreadView.GetInstance().RatingThread(rating);
        }
Beispiel #3
0
 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());
     }
 }