private void Form1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 's') grid.Save("grid.bin"); else if (e.KeyChar == 'l') { (this.CreateGraphics()).Clear(Color.White); this.Refresh(); grid = Grid.Load("grid.bin"); } }
public Form1() { InitializeComponent(); grid = new Grid(new Point(95, 40)); }