Skip to content

Instantly share code, notes, and snippets.

@kaskavalci
Created September 26, 2015 10:39
Show Gist options
  • Save kaskavalci/7fc5cad0857d829bbf04 to your computer and use it in GitHub Desktop.
Save kaskavalci/7fc5cad0857d829bbf04 to your computer and use it in GitHub Desktop.
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