Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: majorsilence/My-FyiReporting
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: version_5.0
Choose a base ref
...
head repository: majorsilence/My-FyiReporting
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: version_5.0.1-alpha
Choose a head ref
  • 19 commits
  • 69 files changed
  • 1 contributor

Commits on Jan 11, 2025

  1. Suppress obsolete member warnings and clean up code

    Added #pragma directives to suppress CS0612 warnings in various
    methods using obsolete members. Updated `CairoExtensions.cs`,
    `GdkExtensions.cs`, `MainWindow.cs`, `ReportArea.cs`,
    `ReportViewer.cs`, and `ParameterPrompt.cs`. Added
    `GlobalSuppressions.cs` for project-level suppressions.
    Removed unused variables in `MainWindow.cs`.
    majorsilence committed Jan 11, 2025
    Configuration menu
    Copy the full SHA
    d3595d8 View commit details
    Browse the repository at this point in the history
  2. Update CurrentDirectory() to use Location instead of CodeBase

    Modified CurrentDirectory() in GeneralUtils.cs to use
    System.Reflection.Assembly.GetExecutingAssembly().Location
    instead of CodeBase. This change ensures the method returns
    a straightforward absolute path to the executing assembly,
    avoiding potential issues with URI formats and non-local paths.
    majorsilence committed Jan 11, 2025
    Configuration menu
    Copy the full SHA
    b8997c2 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2025

  1. Configuration menu
    Copy the full SHA
    1a7fa48 View commit details
    Browse the repository at this point in the history
  2. Replace RijndaelManaged with Aes for encryption

    Updated StringEncryption class to use Aes instead of RijndaelManaged.
    - Replaced private field `rm` with `aes`.
    - Modified constructor to initialize `aes` using `Aes.Create()`.
    - Updated `Encrypt` and `Decrypt` methods to use `aes`.
    - Improved readability of padding calculation logic.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    5c73374 View commit details
    Browse the repository at this point in the history
  3. Refactor and enhance cryptographic implementations

    Refactored code for readability and maintainability. Replaced `RNGCryptoServiceProvider` with `RandomNumberGenerator.Fill` for generating random bytes. Switched from `PasswordDeriveBytes` to `Rfc2898DeriveBytes` for PBKDF2 with SHA-256. Updated from `RijndaelManaged` to `Aes` for AES encryption. Replaced `try-finally` blocks with `using` statements for resource disposal. Streamlined `Create` and `Retrieve` methods for better clarity and efficiency.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    41df97b View commit details
    Browse the repository at this point in the history
  4. Refactor methods to async and use HttpClient

    Refactor synchronous methods to asynchronous using `async` and `await` keywords for improved performance and responsiveness. Replace `WebRequest` and `WebResponse` with `HttpClient` for modern, asynchronous HTTP requests. Update `GetImageStream` in `StyleBackgroundImage.cs` to fetch images asynchronously. Convert methods in `MhtBuilder.cs`, `MhtWebClientLocal.cs`, and `MhtWebFile.cs` to async versions. Update `RunRenderMht` in `Report.cs` to call the async `SavePageArchive`. These changes enhance the application's performance and scalability.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    96be402 View commit details
    Browse the repository at this point in the history
  5. Add HttpClient extension for custom User-Agent header

    Introduced HttpClientExtension class with AddMajorsilenceReportingUserAgent method to set a custom User-Agent header. Updated various methods to use this extension, ensuring consistent User-Agent headers across HTTP requests. Added necessary using directives for RdlEngine.Utility namespace.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    3c0a5b6 View commit details
    Browse the repository at this point in the history
  6. Make drawing methods asynchronous for better performance

    Updated several methods in DesignXmlDraw.cs and DesignCtl.cs to be asynchronous, improving performance and responsiveness. The `HttpClientExtension` class is now public, and its `AddMajorsilenceReportingUserAgent` method is used to set the user agent header in `HttpClient`. The `DrawImageExternal` method now uses `HttpClient` instead of `WebRequest`.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    3477697 View commit details
    Browse the repository at this point in the history
  7. Introduce async programming to improve responsiveness

    Converted various methods in DesignCtl.cs and DesignXmlDraw.cs to use async/await for non-blocking operations. Updated SelectedStyle property in DesignCtl.cs to retrieve style info asynchronously. Modified multiple drawing methods in DesignXmlDraw.cs to be asynchronous. Changed GetStyleInfo and its helper method to handle HTTP requests using HttpClient for better performance.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    7552c6f View commit details
    Browse the repository at this point in the history
  8. Update version numbers to 5.0.1 and 5.0.1-alpha

    Updated the `Directory.Build.props` file to increment the
    `AssemblyVersion`, `FileVersion`, and `Version` properties
    from `5.0.0` to `5.0.1` and `5.0.1-alpha`. This change
    indicates a minor update or patch, with the `-alpha` suffix
    denoting an alpha release of the new version.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    624c540 View commit details
    Browse the repository at this point in the history
  9. net8.0, rdl designer, runtime fixes, Make constructors public in RdlD…

    …esign namespace
    
    Changed constructors from internal to public in several classes
    within the fyiReporting.RdlDesign namespace. This allows for
    greater flexibility in creating instances of these classes from
    other assemblies. Affected classes include PropertyAction,
    PropertyAppearance, PropertyBackground, PropertyBorder,
    PropertyExpr, PropertyTable, and PropertyVisibility, along with
    their respective UIEditor classes.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    547b37e View commit details
    Browse the repository at this point in the history
  10. barcode/qr example rdl

    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    941e207 View commit details
    Browse the repository at this point in the history
  11. Update BarcodeWriter instantiation for compatibility

    if net8.0 runtime errors
    
    Updated instantiation of ZXing.BarcodeWriter in AztecCode.cs, BarCode128.cs, BarCode39.cs, BarCodeEAN8.cs, and QrCode.cs to use different types based on compilation symbols. For DRAWINGCOMPAT, replaced with ZXing.SkiaSharp.BarcodeWriter. For NETSTANDARD2_0 or NET5_0_OR_GREATER, replaced with ZXing.Windows.Compatibility.BarcodeWriter. Default remains ZXing.BarcodeWriter. These changes ensure compatibility with different frameworks and improve barcode writing for various image formats.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    bf3f7de View commit details
    Browse the repository at this point in the history
  12. Add .editorconfig and Solution Items project

    Added a comprehensive .editorconfig file to enforce consistent coding standards for C# files. Included the .editorconfig file in a new "Solution Items" project within the MajorsilenceReporting.sln solution file.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    fa6ec29 View commit details
    Browse the repository at this point in the history
  13. Add CA2000 rule to .editorconfig with warning severity

    Updated .editorconfig to include a new rule enforcing the CA2000 diagnostic, which ensures objects are disposed of before losing scope. The severity for this rule is set to "warning" to improve resource management and code quality.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    455e48f View commit details
    Browse the repository at this point in the history
  14. Runtime fixes, missing awaits added

    Refactor: Convert synchronous methods to async
    
    Converted several synchronous methods to asynchronous across multiple files to improve performance and responsiveness. Key changes include:
    - Updated methods in `ChartBar.cs`, `ChartColumn.cs`, `ChartPie.cs`, and `CustomReportItem.cs` to use `await`.
    - `GetCategoryValue` now returns a tuple instead of using an `out` parameter.
    - Made `GetFilteredData` in `DataRegion.cs` asynchronous.
    - Updated `ValuesCalc` in `DefaultValue.cs` and its callers to use `await`.
    - Refactored `Apply` methods in `Filter.cs` and `Filters.cs` for async operations.
    - `RunPage` in `Image.cs` now awaits `_Value`.
    - Made methods in `List.cs` like `RunSetGrouping`, `PrepGroups`, and `RunPage` asynchronous.
    - Refactored `MatrixEntry.cs` for readability and updated `Compare` in `MatrixEntryComparer` to use `Task.Run`.
    - Updated methods in `Query.cs` to use `await` for async operations.
    - `DefaultValue` in `ReportParameter.cs` now uses `Task.Run` for `ValuesCalc`.
    - Updated `Compare` in `RowsSortExpression` to use `Task.Run`.
    - `GetPageImage` in `StyleBackgroundImage.cs` now awaits `_Value`.
    - Made methods in `Subreport.cs` and `Table.cs` asynchronous.
    - Updated `Evaluate` methods in various classes to be asynchronous.
    
    These changes enhance the application's performance and scalability by leveraging asynchronous programming.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    f6353ca View commit details
    Browse the repository at this point in the history
  15. Refactor Query.cs for readability and resource management

    Refactored the Query class and methods for improved readability and maintainability. Added `using` statements for proper disposal of `IDbCommand` and `IDataReader` resources. Introduced a helper method `CreateDataReader` to streamline data reader creation. Modified `GetData` to apply filter logic within the loop. Reformatted various methods and properties for consistent formatting.
    majorsilence committed Jan 12, 2025
    Configuration menu
    Copy the full SHA
    a8adf69 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2025

  1. Refactor path handling and improve exception rethrowing

    Updated .editorconfig to set CA2007 and CA4014 severities to warning and error respectively. Refactored path handling in RdlDesigner.cs, RdlDesktop.cs, and RdlReader.cs to use new methods from the newly added RdlEngine.Utility.Paths class. Made menuEditFind_Click asynchronous in RdlDesigner.cs. Improved exception rethrowing in FileReadCache.cs and EMFRecordObject.cs to preserve original stack traces.
    majorsilence committed Jan 18, 2025
    Configuration menu
    Copy the full SHA
    c2b163d View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2025

  1. Use an off-screen bitmap as a backing store for designer, avoids prob…

    …lems with async code in Paint method
    
    - Enabled double buffering in the `DesignCtl` constructor.
    -HACK: Refactored `DrawPanelPaint` to handle drawing asynchronously with a `Bitmap` buffer and an `async` method `Internal_DrawPanelPaint`.
    - Added a `Dispose` method to clean up the `Bitmap` buffer.
    majorsilence committed Jan 19, 2025
    Configuration menu
    Copy the full SHA
    ce0d111 View commit details
    Browse the repository at this point in the history
Loading