title: C# Windows Form Application progressbar dataBinding
body: <p>I'm developing a C# Windows Form Application where I placed a ProgressBar that I want to be binded with a property of my class. The code that follow below doesn't work, but I don't know why...</p>
  
  <pre><code>    public int MyProperty
      {
          get { return device.Perc;  }
          set 
          { 
              device.Perc = value;
              NotifyPropertyChanged();
          }
      }
  
      public event PropertyChangedEventHandler PropertyChanged;
  
      private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
      {
          if (PropertyChanged != null)
          {
              PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
          }
      }
  
      public FormFULProgress()
      {
          InitializeComponent();
  
          progressBar1.Maximum = 100;
  
          progressBar1.DataBindings.Add("Value", this, "MyProperty");
      }
  </code></pre>