예제 #1
0
 public Form1()
 {
     InitializeComponent();
     DataInstance = new MyData() { Number = 100 };
     this.bindingSource1.DataSource = DataInstance;
     this.bindingSource1.DataSourceChanged += bindingSource1_DataSourceChanged;
 }
예제 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     this.DataInstance = new MyData() { Number = 200 };
     this.bindingSource1.DataSource = DataInstance;
     this.bindingSource1.ResetBindings(false);
 }