Exemplo n.º 1
0
 private void radButton5_Click(object sender, EventArgs e)
 {
     if (this.txtRemarks.Text.Length < 40)
     {
         int num1 = (int)RadMessageBox.Show("Your request must be at least 40 characters long.");
     }
     else
     {
         this.txtTitle.Text   = this.txtTitle.Text.Trim();
         this.txtRemarks.Text = this.txtRemarks.Text.Trim();
         this.txtEmail.Text   = this.txtEmail.Text.Trim();
         string str1 = this.chkSyslog.Checked ? GClass6.smethod_18() : "No data provided";
         if (this.txtTitle.Text == "")
         {
             int num2 = (int)RadMessageBox.Show("Please provide a short description of the issue.");
         }
         else if (this.txtRemarks.Text.Length < 40)
         {
             int num3 = (int)RadMessageBox.Show("Your request must be at least 40 characters long.");
         }
         else if (!this.method_1(this.txtEmail.Text))
         {
             int num4 = (int)RadMessageBox.Show("You must specify a valid email address, otherwise we can't reply to you!");
         }
         else
         {
             string str2 = this.txtRemarks.Text.Trim() + Environment.NewLine;
             foreach (ListViewDataItem checkedItem in (ReadOnlyCollection <ListViewDataItem>) this.lstTitles.CheckedItems)
             {
                 str2 = str2 + checkedItem.Tag + Environment.NewLine;
             }
             if (this.chkTeamViewer.Checked)
             {
                 str2 = str2 + Environment.NewLine + string.Format("The user has requested a TeamViewer Session at {0}.", (object)TimeZoneInfo.ConvertTimeFromUtc(this.timeViewer.Value.ToUniversalTime(), TimeZoneInfo.FindSystemTimeZoneById("Romance Standard Time")));
             }
             if (this.string_0 != null)
             {
                 str2 = str2 + Environment.NewLine + Environment.NewLine + this.string_0;
             }
             string s = GClass6.smethod_20(string.Format("{0}/issue/open_issue.php", (object)Class67.SupportWiiUUSBHelperURL), new NameValueCollection()
             {
                 { "email", this.txtEmail.Text }, { "app_id", Settings.Default.AppId }, { "title", this.txtTitle.Text }, { "syslog", str1 }
             });
             try
             {
                 int num5 = (int)uint.Parse(s);
             }
             catch
             {
                 int num5 = (int)RadMessageBox.Show("Sorry but we are unable to process your request at the moment");
                 return;
             }
             string str3 = GClass6.smethod_20(string.Format("{0}/issue/answer_issue.php", (object)Class67.SupportWiiUUSBHelperURL), new NameValueCollection()
             {
                 { "issue_id", s }, { "message", str2 }
             });
             try
             {
                 int num5 = (int)uint.Parse(str3);
             }
             catch
             {
                 int num5 = (int)RadMessageBox.Show("Sorry but we are unable to process your request at the moment");
                 return;
             }
             foreach (string sourceFileName in this.list_0)
             {
                 try
                 {
                     string str4 = Path.Combine(GClass88.DirectoryCache, str3);
                     System.IO.File.Copy(sourceFileName, str4, true);
                     Encoding.UTF8.GetString(new WebClient().UploadFile(string.Format("{0}/issue/upload.php", (object)Class67.SupportWiiUUSBHelperURL), str4));
                 }
                 catch
                 {
                 }
             }
             int num6 = (int)RadMessageBox.Show(string.Format("<html>Thank you for contacting us!\nYou will be notified by email (make sure to check your spam box) when a reply is available.\nYour issue id is : {0}\nYou can follow its status <a href=\"{1}/issue/view/view.php?issue_id={2}\">here</a>.\nPlease keep it for future reference.<html>", (object)s, (object)Class67.SupportWiiUUSBHelperURL, (object)s));
             this.Close();
         }
     }
 }