✅ .NET 9.0 | CSharp - WinForms | Encryption & Button Function Issue

Having a minor issue when trying to encrypt a file.

This is my exception error that was thrown: Error: Method or operation is not implemented

Here is my button call code:

private async void ButtonEncrypt_Click(object sender, EventArgs e)
{
    try
    {
        string path = TextboxFilePath.Text;
        System.Windows.Forms.ProgressBar Bar = progressBar;
        System.Windows.Forms.TextBox Status = this.progressStatus;

        await fileEncrypterHelper.EncryptPath(path, progressBar, Status);
    }
    catch (Exception ex)
    {
        TextboxError.Visible = true;
        TextboxError.Text = $"Error: {ex.Message}";
    }
}

private async void ButtonDecrypt_Click(object sender, EventArgs e)
{
    try
    {
        string path = TextboxFilePath.Text;
        System.Windows.Forms.ProgressBar Bar = progressBar;
        System.Windows.Forms.TextBox Status = this.progressStatus;


        await fileEncrypterHelper.DecryptPath(path, progressBar, Status);
    }
    catch (Exception ex)
    {
        TextboxError.Visible = true;
        TextboxError.Text = $"Error: {ex.Message}";
    }
}


Here is the code for everything in my FileEncrypterHelper.cs:
Was this page helpful?