Skip to content

Instantly share code, notes, and snippets.

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private async void button1_Click(object sender, EventArgs e)
{
await Run();
}
@abdelkader
abdelkader / gist:2936601
Created June 15, 2012 13:58
manuel dataSet creation
ds = new DataSet("VehiclesRepairs");
var vehicles = ds.Tables.Add("Vehicles");
vehicles.Columns.Add("VIN",typeof(string));
vehicles.Columns.Add("Make", typeof(string));
vehicles.Columns.Add("Model", typeof(string));
vehicles.Columns.Add("Year", typeof(string));
vehicles.PrimaryKey = new DataColumn[] { vehicles.Columns["VIN"] };
var repairs = ds.Tables.Add("Repairs");
@abdelkader
abdelkader / gist:676249
Created November 15, 2010 00:09
Binding
public class Customer : INotifyPropertyChanged
{
...
private string _name;
public string Name
{
get { return _name; }
set {
if (value != _name)