O'Reilly logo

C# 2008 and 2005 Threaded Programming: Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - Creating a class to hold the information to show in the DataGridView

Now, we are going to create a new class that implements the INotifyPropertyChanged interface because we want it bound to a DataGridView. It is going to offer the necessary properties to show the information in the DataGridView columns:

  1. Stay in the project, MarsEncrypter.
  2. Open the code for the Encrypter class.
  3. Change the existing Encrypter class visibility to public:
    public class Encrypter
    
  4. Create a new class, FileToEncryptProgress, implementing the INotifyPropertyChanged interface, using the following declaration:
    public class FileToEncryptProgress : INotifyPropertyChanged
    
  5. Add the following line of code at the beginning:
    using System.ComponentModel;
    
  6. Add the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required