コード例 #1
0
 public Form1()
 {
     InitializeComponent();
     WindowState             = FormWindowState.Maximized;
     PbPlayground.ClientSize = new Size(1000, 550);
     PbPlayground.BackColor  = Color.Yellow;
     LblNrOfMoves.Text       = "no moves yet";
     pg = new Playground();
 }
コード例 #2
0
        private void StartLevel(int i)
        {
            Graphics graphics = CreateGraphics();

            pg = new Playground();
            string filename = @"..\..\..\levels\level" + Convert.ToString(i) + ".txt";

            pg.StartLevelFromFile(filename);
            PbPlayground.Refresh();
            LblNrOfMoves.Text = "no moves yet";
        }