public MainForm() { _victim = new VictimClass("Master", "Slave"); InitializeComponent(); tbMaster.DataBindings.Add("Text", _victim, "Master", true, DataSourceUpdateMode.OnPropertyChanged); tbSlave.DataBindings.Add("Text", _victim, "Slave", true, DataSourceUpdateMode.OnPropertyChanged); testUserControl.DataBindings.Add("Master", _victim, "Master", true, DataSourceUpdateMode.OnPropertyChanged); testUserControl.DataBindings.Add("Slave", _victim, "Slave", true, DataSourceUpdateMode.OnPropertyChanged); }
public VictimClass(VictimClass obj) : this(obj.Master, obj.Slave) { }