Exemplo n.º 1
0
 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");
     }
 }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            grid = new Grid(new Point(95, 40));
        }