Created
September 26, 2015 10:39
-
-
Save kaskavalci/7fc5cad0857d829bbf04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Settings | |
{ | |
private bool showid = true; | |
public bool showID | |
{ | |
get | |
{ | |
return showid; | |
} | |
set | |
{ | |
showid = value; | |
} | |
} | |
} | |
public class Form1 | |
{ | |
private CheckBox ShowID; | |
public Form1() | |
{ | |
Settings mySettings = new Settings(); | |
this.ShowID.DataBindings.Add("Checked", mySettings, "showID"); | |
this.ShowID.DataBindings[0].DataSourceUpdateMode = DataSourceUpdateMode.OnPropertyChanged; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment