View SimpleAsync.cs
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 partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private async void button1_Click(object sender, EventArgs e) | |
{ | |
await Run(); | |
} |
View gist:2936601
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
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"); |
View gist:676249
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 Customer : INotifyPropertyChanged | |
{ | |
... | |
private string _name; | |
public string Name | |
{ | |
get { return _name; } | |
set { | |
if (value != _name) |