هل يمكنك شرح هذا الجزء من الكلاس  Class67 بالعربي وبالتفصيل     public static string smethod_75()
  {
    string str1;
    try
    {
      str1 = Class67.smethod_69().ToString();
    }
    catch
    {
      if (SysSettings.Maintenance_mode)
        Class88.Show(strings.ERROR, "Can't Get CPU Serial.", 0);
      str1 = "NULL";
    }
    string str2 = "";
    try
    {
      str2 = Class67.smethod_70();
    }
    catch
    {
      if (SysSettings.Maintenance_mode)
        Class88.Show(strings.ERROR, "Can't Get Motherboard Serial", 0);
      str1 = "NULL";
    }
    try
    {
      Class67.smethod_71();
    }
    catch
    {
    }
    Class67.Class69 class69 = Class67.list_0.FirstOrDefault<Class67.Class69>();
    string str3;
    try
    {
      str3 = class69 == null ? "NULL" : class69.Model.ToString() + class69.SerialNo.ToString();
    }
    catch
    {
      if (SysSettings.Maintenance_mode)
        Class88.Show(strings.ERROR, "Can't Get HDD Model & Serial", 0);
      str3 = "NULL";
    }
    string str4 = Class71.smethod_0(Path.GetPathRoot(Environment.GetEnvironmentVariable("WINDIR")).Substring(0, 1));
    string str5 = str4 != "" ? str4 : str3;
    string string_0 = "";
    try
    {
      string_0 = str1 + "_" + str2 + "_" + str5;
    }
    catch
    {
      Class88.Show(strings.ERROR, "Can't Combine HDD with CPU and MB", 0);
    }
    return Class67.smethod_77(Class67.smethod_58(string_0));
  }

  public static string smethod_76(string string_0)
  {
    return Encoding.ASCII.GetString(Encoding.GetEncoding("Cyrillic").GetBytes(string_0));
  }

  public static string smethod_77(string string_0)
  {
    return Regex.Replace(Regex.Replace(Regex.Replace(Class67.smethod_76(string_0).ToLower(), "[^a-z0-9\\s-]", ""), "\\s+", " ").Trim(), "\\s", "-");
  }

  public static string smethod_78()
  {
    string string_0 = Path.GetPathRoot(Environment.GetEnvironmentVariable("WINDIR")).Substring(0, 1);
    string str1;
    try
    {
      str1 = Class67.smethod_69().ToString();
    }
    catch
    {
      str1 = "Can't Get CPU Serial.";
    }
    string str2 = "";
    try
    {
      str2 = Class67.smethod_70();
    }
    catch
    {
      str1 = "Can't Get Motherboard Serial";
    }
    try
    {
      Class67.smethod_71();
    }
    catch
    {
    }
    Class67.Class69 class69 = Class67.list_0.FirstOrDefault<Class67.Class69>();
    string str3 = class69 != null ? class69.SerialNo.ToString() : "Can't Get HDD Model & Serial";
    string str4 = Class71.smethod_0(string_0);
    string str5 = !(str4 != "") ? str3 : str4;
    return str1 + "_" + str2 + "_" + str5;
  }

  public static int smethod_79(
    string string_0,
    string string_1,
    string string_2,
    int int_0,
    string string_3,
    int int_1,
    int int_2,
    int int_3)
  {
    mrsalesdbEntities mrsalesdbEntities = ConnectionTools.OpenConn();
    ad_accreditation_requests entity = new ad_accreditation_requests();
    entity.desc = string_1;
    entity.type = string_0;
    entity.sourceType = string_2;
    entity.sourceID = new int?(int_0);
    entity.targetType = string_3;
    entity.targetID = new int?(int_1);
    entity.creationDate = new DateTime?(Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
    entity.status = new int?(-1);
    entity.applicantID = new int?(BasicVars.UserID);
    entity.adminID = new int?(int_2);
    entity.adminCat = new int?(int_3);
    entity.r_user_ID = new int?(BasicVars.UserID);
    entity.r_branche_ID = new int?(BasicVars.Branche);
    entity.r_device_ID = new int?(BasicVars.Device);
    entity.shift = new int?(BasicVars.Shift);
    mrsalesdbEntities.ad_accreditation_requests.Add(entity);
    mrsalesdbEntities.SaveChanges();
    return entity.id;
  }

  public static void Logout()
  {
    mrsalesdbEntities mrsalesdbEntities1 = ConnectionTools.OpenConn();
    if (BasicVars.SessionID != 0)
    {
      try
      {
        emp_sessions empSessions = mrsalesdbEntities1.emp_sessions.Find(new object[1]
        {
          (object) BasicVars.SessionID
        });
        if (empSessions != null)
        {
          empSessions.se_Status = new int?(0);
          empSessions.se_LogoutDate = new DateTime?(Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
          mrsalesdbEntities1.SaveChanges();
        }
      }
      catch
      {
      }
    }
    mrsalesdbEntities mrsalesdbEntities2 = ConnectionTools.OpenConn();
    if (BasicVars.Device != 0)
    {
      try
      {
        mrsalesdbEntities2.ad_device_info.Find(new object[1]
        {
          (object) BasicVars.Device
        }).online = new int?(0);
        mrsalesdbEntities2.SaveChanges();
      }
      catch
      {
      }
    }
    if (BasicVars.UserID != 0)
    {
      try
      {
        mrsalesdbEntities mrsalesdbEntities3 = ConnectionTools.OpenConn();
        DbSet<emp_sessions> empSessions1 = mrsalesdbEntities3.emp_sessions;
        Expression<System.Func<emp_sessions, bool>> predicate = (Expression<System.Func<emp_sessions, bool>>) (u => u.empdata_ID == (int?) BasicVars.UserID && u.se_Status == (int?) 1);
        foreach (emp_sessions empSessions2 in (IEnumerable<emp_sessions>) empSessions1.Where<emp_sessions>(predicate))
        {
          empSessions2.se_Status = new int?(0);
          empSessions2.se_LogoutDate = new DateTime?(Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
        }
        mrsalesdbEntities3.SaveChanges();
      }
      catch
      {
      }
    }
    Application.DoEvents();
  }

  public static void smethod_80()
  {
    mrsalesdbEntities mrsalesdbEntities = ConnectionTools.OpenConn();
    if (BasicVars.SessionID != 0)
    {
      emp_sessions empSessions = mrsalesdbEntities.emp_sessions.Find(new object[1]
      {
        (object) BasicVars.SessionID
      });
      empSessions.se_Status = new int?(0);
      empSessions.se_LogoutDate = new DateTime?(Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
      mrsalesdbEntities.SaveChanges();
    }
    if (BasicVars.Device != 0)
    {
      mrsalesdbEntities.ad_device_info.Find(new object[1]
      {
        (object) BasicVars.Device
      }).online = new int?(0);
      mrsalesdbEntities.SaveChanges();
    }
    if (BasicVars.UserID == 0)
      return;
    DbSet<emp_sessions> empSessions1 = mrsalesdbEntities.emp_sessions;
    Expression<System.Func<emp_sessions, bool>> predicate = (Expression<System.Func<emp_sessions, bool>>) (u => u.empdata_ID == (int?) BasicVars.UserID && u.se_Status == (int?) 1);
    foreach (emp_sessions empSessions2 in (IEnumerable<emp_sessions>) empSessions1.Where<emp_sessions>(predicate))
    {
      empSessions2.se_Status = new int?(0);
      empSessions2.se_LogoutDate = new DateTime?(Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
    }
    mrsalesdbEntities.SaveChanges();
  }

  public static void smethod_81(string string_0, string string_1, string string_2)
  {
    System.Configuration.Configuration configuration = ConfigurationManager.OpenExeConfiguration(string_2);
    configuration.AppSettings.Settings[string_0].Value = string_1;
    configuration.Save();
  }

  public static void smethod_82(GridControl gridControl_0)
  {
    if (gridControl_0.IsPrintingAvailable)
    {
      gridControl_0.ShowPrintPreview();
    }
    else
    {
      int num = (int) MessageBox.Show("The 'DevExpress.XtraPrinting' library is not found", "Error");
    }
  }

  public static void smethod_83(GridControl gridControl_0)
  {
    if (!gridControl_0.IsPrintingAvailable)
    {
      int num = (int) MessageBox.Show("The 'DevExpress.XtraPrinting' library is not found", "Error");
    }
    else
      gridControl_0.Print();
  }

  public static mrsalesdbEntities smethod_84(object object_0)
  {
    ((DbContext) object_0).Configuration.AutoDetectChangesEnabled = false;
    ((DbContext) object_0).Configuration.ValidateOnSaveEnabled = false;
    ((DbContext) object_0).Configuration.ProxyCreationEnabled = false;
    return (mrsalesdbEntities) object_0;
  }

  public static mrsalesdbEntities smethod_85(object object_0)
  {
    ((DbContext) object_0).Configuration.AutoDetectChangesEnabled = false;
    ((DbContext) object_0).Configuration.ValidateOnSaveEnabled = false;
    return (mrsalesdbEntities) object_0;
  }

  public static Decimal smethod_86(int int_0, string string_0, int int_1 = 0)
  {
    Decimal num1 = 0M;
    mrsalesdbEntities mrsalesdbEntities = ConnectionTools.OpenConn();
    switch (string_0)
    {
      case "Bank":
        if (int_0 != 0)
        {
          num1 = Convert.ToDecimal((object) mrsalesdbEntities.account_items.Where<account_items>((Expression<System.Func<account_items, bool>>) (u => u.accitem_TrsID == (int?) int_0 && u.accitem_TrsType == (int?) 2 && u.accitem_AccID == (int?) MainAccountsIDs.BANKS)).Sum<account_items>((Expression<System.Func<account_items, Decimal?>>) (s => s.accitem_Debit))) - Convert.ToDecimal((object) mrsalesdbEntities.account_items.Where<account_items>((Expression<System.Func<account_items, bool>>) (u => u.accitem_TrsID == (int?) int_0 && u.accitem_TrsType == (int?) 2 && u.accitem_AccID == (int?) MainAccountsIDs.BANKS)).Sum<account_items>((Expression<System.Func<account_items, Decimal?>>) (s => s.accitem_Credit)));
          break;
        }
        break;
      case "Card":
        if (int_0 != 0)
        {
          num1 = Convert.ToDecimal((object) mrsalesdbEntities.account_items.Where<account_items>((Expression<System.Func<account_items, bool>>) (u => u.accitem_TrsID == (int?) int_0 && u.accitem_TrsType == (int?) 3 && (u.accitem_AccID == (int?) MainAccountsIDs.PAYMENTS_CARDS || u.accitem_AccID == (int?) MainAccountsIDs.Banks_fee))).Sum<account_items>((Expression<System.Func<account_items, Decimal?>>) (s => s.accitem_Debit))) - Convert.ToDecimal((object) mrsalesdbEntities.account_items.Where<account_items>((Expression<System.Func<account_items, bool>>) (u => u.accitem_TrsID == (int?) int_0 && u.accitem_TrsType == (int?) 3 && (u.accitem_AccID == (int?) MainAccountsIDs.PAYMENTS_CARDS || u.accitem_AccID == (int?) MainAccountsIDs.Banks_fee))).Sum<account_items>((Expression<System.Func<account_items, Decimal?>>) (s => s.accitem_Credit)));
          break;
        }
        break;
      case "Trs":
        if (int_0 != 0)
        {
          num1 = Convert.ToDecimal((object) mrsalesdbEntities.account_items.Where<account_items>((Expression<System.Func<account_items, bool>>) (u => u.accitem_TrsID == (int?) int_0 && u.accitem_TrsType == (int?) 1 && u.accitem_AccID == (int?) MainAccountsIDs.TREASURY)).Sum<account_items>((Expression<System.Func<account_items, Decimal?>>) (s => s.accitem_Debit))) - Convert.ToDecimal((object) mrsalesdbEntities.account_items.Where<account_items>((Expression<System.Func<account_items, bool>>) (u => u.accitem_TrsID == (int?) int_0 && u.accitem_TrsType == (int?) 1 && u.accitem_AccID == (int?) MainAccountsIDs.TREASURY)).Sum<account_items>((Expression<System.Func<account_items, Decimal?>>) (s => s.accitem_Credit)));
          break;
        }
        break;
      case "OtherAcc":
        if ((int_0 != 0 ? (int_1 != 0 ? 1 : 0) : 0) != 0)
        {
          Decimal num2 = Convert.ToDecimal((object) mrsalesdbEntities.account_items.Where<account_items>((Expression<System.Func<account_items, bool>>) (u => u.accitem_TrsID == (int?) int_0 && u.accitem_AccID == (int?) int_1)).Sum<account_items>((Expression<System.Func<account_items, Decimal?>>) (s => s.accitem_Debit)));
          Decimal num3 = Convert.ToDecimal((object) mrsalesdbEntities.account_items.Where<account_items>((Expression<System.Func<account_items, bool>>) (u => u.accitem_TrsID == (int?) int_0 && u.accitem_AccID == (int?) int_1)).Sum<account_items>((Expression<System.Func<account_items, Decimal?>>) (s => s.accitem_Credit)));
          num1 = (mrsalesdbEntities.accounts_detials.Find(new object[1]
          {
            (object) int_1
          }).accdet_DebitOrCredit.Value != 0 ? 1 : 0) == 0 ? num2 - num3 : num3 - num2;
          break;
        }
        break;
    }
    return num1;
  }

  public static string smethod_87(object object_0)
  {
    RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(string.Format("{0}\\{1}", (object) "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths", object_0));
    object obj = (object) null;
    if (registryKey != null)
      obj = registryKey.GetValue(string.Empty);
    registryKey.Close();
    return (string) obj;
  }

  public static bool smethod_88(string string_0)
  {
    bool flag = false;
    using (MySqlConnection connection = new MySqlConnection(myconn.mrsales_Coonn))
    {
      string cmdText = "SELECT * FROM `information_schema`.`ROUTINES` where specific_name = " + string_0 + " and routine_schema = " + myconn.database ?? "";
      connection.Open();
      MySqlCommand mySqlCommand = new MySqlCommand(cmdText, connection);
      MySqlDataReader mySqlDataReader = mySqlCommand.ExecuteReader();
      while (mySqlDataReader.Read())
      {
        if (Convert.ToInt32(mySqlDataReader.GetValue(1)) > 0)
          flag = true;
      }
      mySqlDataReader.Close();
      mySqlCommand.Dispose();
      connection.Close();
    }
    return flag;
  }

  public static void smethod_89(string string_0, object object_0)
  {
    Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 1));
    Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 2));
    Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 3));
    Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 4));
    Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 5));
    using (MySqlConnection mySqlConnection = new MySqlConnection(PathingVars.customConnTemp != "" ? PathingVars.customConnTemp : ConnectionTools.ReturnTheConnectionFromAppConfigFile().ConnectionString))
    {
      try
      {
        mySqlConnection.Open();
        using (MySqlTransaction mySqlTransaction = mySqlConnection.BeginTransaction())
        {
          using (MySqlCommand command = mySqlConnection.CreateCommand())
          {
            command.CommandText = string_0;
            command.ExecuteNonQuery();
          }
          mySqlTransaction.Commit();
        }
        mySqlConnection.Close();
      }
      catch
      {
      }
    }
  }

  public static void smethod_90(string string_0, string string_1)
  {
    using (MySqlConnection mySqlConnection = new MySqlConnection(PathingVars.customConnTemp != "" ? PathingVars.customConnTemp : ConnectionTools.ReturnTheConnectionFromAppConfigFile().ConnectionString))
    {
      try
      {
        mySqlConnection.Open();
        using (MySqlTransaction mySqlTransaction = mySqlConnection.BeginTransaction())
        {
          using (MySqlCommand command = mySqlConnection.CreateCommand())
          {
            command.CommandText = string_0;
            command.ExecuteNonQuery();
          }
          mySqlTransaction.Commit();
        }
        mySqlConnection.Close();
      }
      catch (Exception ex)
      {
        LogWriter.errLog("cretae view : " + string_1, ex);
      }
    }
  }

  public static Decimal smethod_91(bool bool_0, Decimal decimal_0)
  {
    Decimal num1 = 0M;
    Decimal num2 = 0M;
    Decimal num3;
    if (!SysSettings.price_include_tax)
    {
      num1 = decimal_0;
      num2 = decimal_0;
      num3 = decimal_0;
    }
    else
    {
      Decimal num4 = SysSettings.ss_auto_add_tax_to_new_items ? decimal_0 / (1M + Convert.ToDecimal(SysSettings.ss_def_sales_tax_percent) / 100M) : decimal_0;
      Decimal num5 = SysSettings.ss_auto_add_tax_to_new_items ? decimal_0 / (1M + Convert.ToDecimal(SysSettings.ss_def_purchases_tax_percent) / 100M) : decimal_0;
      num3 = !bool_0 ? num5 : num4;
    }
    return num3;
  }

  public static void myWqFkeaxf0(string string_0, string string_1, string string_2)
  {
    mrsalesdbEntities mrsalesdbEntities = ConnectionTools.OpenConn();
    int int_0_1 = 0;
    IQueryable<emp_usercatperms_list> source1 = mrsalesdbEntities.emp_usercatperms_list.Where<emp_usercatperms_list>((Expression<System.Func<emp_usercatperms_list, bool>>) (a => a.empcatp_PermisName == string_0));
    if (source1.Count<emp_usercatperms_list>() <= 0)
    {
      emp_usercatperms_list entity = new emp_usercatperms_list();
      entity.empcatp_Parent = string_1;
      entity.empcatp_PermisName = string_0;
      entity.empcatp_Group = string_2;
      mrsalesdbEntities.emp_usercatperms_list.Add(entity);
      mrsalesdbEntities.SaveChanges();
      int_0_1 = entity.empcatp_ID;
    }
    else
      int_0_1 = source1.FirstOrDefault<emp_usercatperms_list>().empcatp_ID;
    DbSet<emp_usercat> empUsercat = mrsalesdbEntities.emp_usercat;
    Expression<System.Func<emp_usercat, int>> selector = (Expression<System.Func<emp_usercat, int>>) (s => s.usercat_ID);
    foreach (int num1 in empUsercat.Select<emp_usercat, int>(selector).ToList<int>())
    {
      int int_0_2 = num1;
      if (!mrsalesdbEntities.emp_usercat_prems.Any<emp_usercat_prems>((Expression<System.Func<emp_usercat_prems, bool>>) (s => s.usercat_ID == (int?) int_0_2 && s.empcatp_ID == (int?) int_0_1)))
      {
        IQueryable<emp_usercat_prems> source2 = mrsalesdbEntities.emp_usercat_prems.Where<emp_usercat_prems>((Expression<System.Func<emp_usercat_prems, bool>>) (s => s.usercat_ID == (int?) int_0_2 && s.empcatp_ID == (int?) 1));
        int num2 = source2.FirstOrDefault<emp_usercat_prems>().ucperm_Show.Value;
        int num3 = source2.FirstOrDefault<emp_usercat_prems>().ucperm_Insert.Value;
        int num4 = source2.FirstOrDefault<emp_usercat_prems>().ucperm_Update.Value;
        int num5 = source2.FirstOrDefault<emp_usercat_prems>().ucperm_SIngleDelete.Value;
        int num6 = source2.FirstOrDefault<emp_usercat_prems>().ucperm_MultiDelete.Value;
        int num7 = source2.FirstOrDefault<emp_usercat_prems>().ucperm_Print.Value;
        mrsalesdbEntities.emp_usercat_prems.Add(new emp_usercat_prems()
        {
          usercat_ID = new int?(int_0_2),
          empcatp_ID = new int?(int_0),
          ucperm_Show = new int?(num2),
          ucperm_Insert = new int?(num3),
          ucperm_Update = new int?(num4),
          ucperm_SIngleDelete = new int?(num5),
          ucperm_MultiDelete = new int?(num6),
          ucperm_Print = new int?(num7),
          r_user_ID = new int?(BasicVars.UserID),
          r_branche_ID = new int?(BasicVars.Branche)
        });
      }
    }
    mrsalesdbEntities.SaveChanges();
  }

  public static void smethod_92(
    string string_0,
    string string_1,
    string string_2,
    int int_0,
    int int_1,
    int int_2,
    int int_3,
    int int_4,
    int int_5)
  {
    mrsalesdbEntities mrsalesdbEntities = ConnectionTools.OpenConn();
    try
    {
      IQueryable<accounts_detials> source = mrsalesdbEntities.accounts_detials.Where<accounts_detials>((Expression<System.Func<accounts_detials, bool>>) (u => u.accdet_LangAccName == string_1));
      if (source.Count<accounts_detials>() == 0)
      {
        int num1 = 0;
        try
        {
          num1 = mrsalesdbEntities.accounts_detials.Where<accounts_detials>((Expression<System.Func<accounts_detials, bool>>) (u => u.accdet_Cat == (int?) int_2)).Max<accounts_detials, int?>((Expression<System.Func<accounts_detials, int?>>) (m => m.accdet_AccountCode)).Value;
        }
        catch
        {
        }
        int num2 = num1 != 0 ? num1 + 1 : int_0;
        accounts_detials entity = new accounts_detials();
        entity.accdet_Type = new int?(int_1);
        entity.accdet_Cat = new int?(int_2);
        entity.accdet_AccountCode = new int?(num2);
        entity.accdet_LangAccName = string_1;
        entity.accdet_DebitOrCredit = new int?(int_3);
        entity.accdet_CostCenterStatus = new int?(int_4);
        entity.accdet_FinalAccountType = new int?(int_5);
        mrsalesdbEntities.accounts_detials.Add(entity);
        mrsalesdbEntities.SaveChanges();
        int? gparam_1 = new int?(entity.accdet_ID);
        mrsalesdbEntities.accounts_settings.Find(new object[1]
        {
          (object) 1
        }).smethod_0<accounts_settings, int?>(string_2, gparam_1);
        mrsalesdbEntities.SaveChanges();
      }
      else
      {
        try
        {
          int? gparam_1 = new int?(source.FirstOrDefault<accounts_detials>().accdet_ID);
          mrsalesdbEntities.accounts_settings.Find(new object[1]
          {
            (object) 1
          }).smethod_0<accounts_settings, int?>(string_2, gparam_1);
          mrsalesdbEntities.SaveChanges();
        }
        catch (Exception ex)
        {
          Class88.Show("", ex.Message, 0);
        }
      }
    }
    catch (Exception ex)
    {
      LogWriter.errLog(string_0 + " : Update Content", ex);
    }
  }

  public static void smethod_93(object object_0, string string_0, int int_0 = 4)
  {
    ConnectionTools.ReadConnPara();
    if (Class67.smethod_28(int_0, string_0) == 0)
    {
      Class88.Show(strings.ACCESS_DENIED, strings.YOU_DO_NOT_HAVE_PERMISSIONS_TO_EXECUTE_THIS_OPERATION, 0);
    }
    else
    {
      ReportViewer reportViewer = new ReportViewer(object_0.ToString());
      SqlDataSource dataSource = ((XtraReportBase) object_0).DataSource as SqlDataSource;
      Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 1));
      Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 2));
      Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 3));
      Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 4));
      Class67.smethod_59(Class67.smethod_122(FoldersPaths.ConnFilePath, 5));
      object_0 = (object) Class67.loadReportsCommonProprties(object_0);
      try
      {
        ((XtraReport) object_0).Parameters["mobile1"].Value = (object) BasicVars.BrMobile1;
        ((XtraReport) object_0).Parameters["mobile2"].Value = (object) BasicVars.BrMobile2;
        ((XtraReport) object_0).Parameters["mobile3"].Value = (object) BasicVars.BrMobile3;
        ((XtraReport) object_0).Parameters["country"].Value = (object) BasicVars.BrCountry;
        ((XtraReport) object_0).Parameters["city"].Value = (object) BasicVars.BrCity;
        ((XtraReport) object_0).Parameters["address"].Value = (object) BasicVars.BrAdrress;
        ((XtraReport) object_0).Parameters["email"].Value = (object) BasicVars.Email;
        ((XtraReport) object_0).Parameters["website"].Value = (object) BasicVars.Website;
        ((XtraReport) object_0).Parameters["CompanyName"].Value = (object) BasicVars.CompanyName;
      }
      catch
      {
      }
      try
      {
        ((XRControl) object_0).FindControl("xrLabel20", true).Text = CopyRightsClass.CopyRight;
        ((XRControl) object_0).FindControl("xrLabel3", true).Text = CopyRightsClass.website;
      }
      catch
      {
      }
      ((XtraReport) object_0).RollPaper = PrintVars.DfRollPaper;
      try
      {
        ((XtraReport) object_0).CreateDocument(true);
        reportViewer.documentViewer1.DocumentSource = object_0;
        reportViewer.Show();
      }
      catch
      {
        Class88.Show(strings.ERROR, strings.CAN_NOT_CREATE_REPORT_DOCMUENT, 0);
      }
    }
  }

  public static Form smethod_94(object object_0, string string_0, int int_0 = 4)
  {
    ConnectionTools.ReadConnPara();
    Form form;
    if (Class67.smethod_28(int_0, string_0) != 0)
    {
      ReportViewer reportViewer = new ReportViewer(object_0.ToString());
      try
      {
        ((XtraReport) object_0).Parameters["mobile1"].Value = (object) BasicVars.BrMobile1;
        ((XtraReport) object_0).Parameters["mobile2"].Value = (object) BasicVars.BrMobile2;
        ((XtraReport) object_0).Parameters["mobile3"].Value = (object) BasicVars.BrMobile3;
        ((XtraReport) object_0).Parameters["country"].Value = (object) BasicVars.BrCountry;
        ((XtraReport) object_0).Parameters["city"].Value = (object) BasicVars.BrCity;
        ((XtraReport) object_0).Parameters["address"].Value = (object) BasicVars.BrAdrress;
        ((XtraReport) object_0).Parameters["email"].Value = (object) BasicVars.Email;
        ((XtraReport) object_0).Parameters["website"].Value = (object) BasicVars.Website;
        ((XtraReport) object_0).Parameters["CompanyName"].Value = (object) BasicVars.CompanyName;
      }
      catch
      {
      }
      try
      {
        ((XRControl) object_0).FindControl("xrLabel20", true).Text = CopyRightsClass.CopyRight;
        ((XRControl) object_0).FindControl("xrLabel3", true).Text = CopyRightsClass.website;
      }
      catch
      {
      }
      ((XtraReport) object_0).RollPaper = PrintVars.DfRollPaper;
      ((XtraReport) object_0).CreateDocument(true);
      reportViewer.documentViewer1.DocumentSource = object_0;
      form = (Form) reportViewer;
    }
    else
    {
      Class88.Show(strings.ACCESS_DENIED, strings.YOU_DO_NOT_HAVE_PERMISSIONS_TO_EXECUTE_THIS_OPERATION, 0);
      form = (Form) null;
    }
    return form;
  }

  public static int smethod_95(int int_0, Decimal decimal_0, List<st_bonus> list_1)
  {
    st_bonus stBonus = list_1.Where<st_bonus>((System.Func<st_bonus, bool>) (u =>
    {
      int? bonusType = u.bonus_Type;
      if (bonusType.GetValueOrDefault() == 1 & bonusType.HasValue)
      {
        int? stitemsuId = u.stitemsu_ID;
        int num1 = int_0;
        if (stitemsuId.GetValueOrDefault() == num1 & stitemsuId.HasValue)
        {
          Decimal? minimum = u.minimum;
          Decimal num2 = decimal_0;
          return minimum.GetValueOrDefault() <= num2 & minimum.HasValue;
        }
      }
      return false;
    })).OrderByDescending<st_bonus, Decimal?>((System.Func<st_bonus, Decimal?>) (t => t.minimum)).FirstOrDefault<st_bonus>();
    int num3;
    if (list_1.Where<st_bonus>((System.Func<st_bonus, bool>) (u =>
    {
      int? bonusType = u.bonus_Type;
      if (bonusType.GetValueOrDefault() == 1 & bonusType.HasValue)
      {
        int? stitemsuId = u.stitemsu_ID;
        int num6 = int_0;
        if (stitemsuId.GetValueOrDefault() == num6 & stitemsuId.HasValue)
        {
          Decimal? minimum = u.minimum;
          Decimal num7 = decimal_0;
          return minimum.GetValueOrDefault() <= num7 & minimum.HasValue;
        }
      }
      return false;
    })).Count<st_bonus>() != 0)
    {
      Decimal num4 = stBonus.minimum.Value;
      Decimal num5 = stBonus.bonus.Value;
      num3 = Convert.ToInt32(Math.Floor(decimal_0 / num4 * num5));
    }
    else
      num3 = 0;
    return num3;
  }

  public static Form smethod_96(object object_0, string string_0, int int_0 = 4, bool bool_0 = false)
  {
    Form form;
    if (!(string_0 != "NULL"))
    {
      ReportViewer reportViewer = new ReportViewer(object_0.ToString());
      try
      {
        ((XtraReport) object_0).Parameters["mobile1"].Value = (object) BasicVars.BrMobile1;
        ((XtraReport) object_0).Parameters["mobile2"].Value = (object) BasicVars.BrMobile2;
        ((XtraReport) object_0).Parameters["mobile3"].Value = (object) BasicVars.BrMobile3;
        ((XtraReport) object_0).Parameters["country"].Value = (object) BasicVars.BrCountry;
        ((XtraReport) object_0).Parameters["city"].Value = (object) BasicVars.BrCity;
        ((XtraReport) object_0).Parameters["address"].Value = (object) BasicVars.BrAdrress;
        ((XtraReport) object_0).Parameters["email"].Value = (object) BasicVars.Email;
        ((XtraReport) object_0).Parameters["website"].Value = (object) BasicVars.Website;
        (((XRControl) object_0).FindControl("xrPictureBox2", true) as XRPictureBox).Image = BasicVars.CompanyLogo.byteArrayToImage();
        ((XtraReport) object_0).Parameters["CompanyName"].Value = (object) BasicVars.CompanyName;
      }
      catch
      {
      }
      try
      {
        ((XRControl) object_0).FindControl("xrLabel20", true).Text = CopyRightsClass.CopyRight;
        ((XRControl) object_0).FindControl("xrLabel3", true).Text = CopyRightsClass.website;
      }
      catch
      {
      }
      ((XtraReport) object_0).CreateDocument(true);
      reportViewer.documentViewer1.DocumentSource = object_0;
      form = (Form) reportViewer;
    }
    else if (Class67.smethod_28(int_0, string_0) != 0)
    {
      ReportViewer reportViewer = new ReportViewer(object_0.ToString());
      try
      {
        ((XtraReport) object_0).Parameters["mobile1"].Value = (object) BasicVars.BrMobile1;
        ((XtraReport) object_0).Parameters["mobile2"].Value = (object) BasicVars.BrMobile2;
        ((XtraReport) object_0).Parameters["mobile3"].Value = (object) BasicVars.BrMobile3;
        ((XtraReport) object_0).Parameters["country"].Value = (object) BasicVars.BrCountry;
        ((XtraReport) object_0).Parameters["city"].Value = (object) BasicVars.BrCity;
        ((XtraReport) object_0).Parameters["address"].Value = (object) BasicVars.BrAdrress;
        ((XtraReport) object_0).Parameters["email"].Value = (object) BasicVars.Email;
        ((XtraReport) object_0).Parameters["website"].Value = (object) BasicVars.Website;
        ((XtraReport) object_0).Parameters["CompanyName"].Value = (object) BasicVars.CompanyName;
        (((XRControl) object_0).FindControl("xrPictureBox2", true) as XRPictureBox).Image = BasicVars.CompanyLogo.byteArrayToImage();
      }
      catch
      {
      }
      try
      {
        ((XRControl) object_0).FindControl("xrLabel20", true).Text = CopyRightsClass.CopyRight;
        ((XRControl) object_0).FindControl("xrLabel3", true).Text = CopyRightsClass.website;
      }
      catch
      {
      }
      ((XtraReport) object_0).CreateDocument(true);
      reportViewer.documentViewer1.DocumentSource = object_0;
      form = (Form) reportViewer;
    }
    else
    {
      Class88.Show(strings.ACCESS_DENIED, strings.YOU_DO_NOT_HAVE_PERMISSIONS_TO_EXECUTE_THIS_OPERATION, 0);
      form = (Form) null;
    }
    return form;
  }

  public static XtraReport smethod_97(XtraReport xtraReport_0, string string_0, int int_0 = 4)
  {
    XtraReport xtraReport;
    if (string_0 != "NULL")
    {
      if (Class67.smethod_28(int_0, string_0) != 0)
      {
        xtraReport_0.RollPaper = false;
        xtraReport = xtraReport_0;
      }
      else
      {
        Class88.Show(strings.ACCESS_DENIED, strings.YOU_DO_NOT_HAVE_PERMISSIONS_TO_EXECUTE_THIS_OPERATION, 0);
        xtraReport = (XtraReport) null;
      }
    }
    else
    {
      ReportViewer reportViewer = new ReportViewer(xtraReport_0.ToString());
      xtraReport_0.RollPaper = false;
      xtraReport = xtraReport_0;
    }
    return xtraReport;
  }

  public static string[] smethod_98(string string_0, string string_1)
  {
    return Directory.GetFiles(string_0, string_1, SearchOption.TopDirectoryOnly);
  }

  public static string smethod_99(object object_0)
  {
    return Path.Combine(FoldersPaths.ReportsPath, object_0.ToString() + "_" + BasicVars.Languages + "_" + (object) BasicVars.selectedNetworkServerID + ".repx");
  }

  public static string smethod_100(object object_0)
  {
    return Path.Combine(FoldersPaths.ReportsPath, object_0.ToString() + "_" + BasicVars.Languages + "_" + (object) BasicVars.selectedNetworkServerID + ".repx");
  }