예제 #1
0
파일: Form1.cs 프로젝트: IstratenkovMA/c-
 private void Form1_Shown(object sender, EventArgs e)
 {
     graphics = this.CreateGraphics();
     looseFrases.Add("Where did I go wrong?..");
     looseFrases.Add("Deadlock again?..");
     looseFrases.Add("It's so simple!");
     fild = new Fild(@"..\..\Levels\" + level.ToString() + ".txt");
     fild.drawFild(graphics);
 }
예제 #2
0
파일: Form1.cs 프로젝트: IstratenkovMA/c-
        private void Form1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int x = e.Location.X;
            int y = e.Location.Y;

            fild = new Fild(@"..\..\Levels\" + level.ToString() + ".txt");
            fild.SetCursor(x, y, graphics);
            fild.drawFild(graphics);
        }
예제 #3
0
파일: Form1.cs 프로젝트: IstratenkovMA/c-
 public void ChangeLevel()
 {
     if (level == 6)
     {
         graphics.Clear(Color.LightBlue);
         fild = new Fild();
         graphics.DrawString("CONGRATULATIONS!\n   YOU BEAT\n   THE GAME!",
                             new Font("Cooper Black", 50), new SolidBrush(Color.DarkGoldenrod), new PointF(0, 100));
         level = 1;
         return;
     }
     level++;
     fild = new Fild(@"..\..\Levels\" + level.ToString() + ".txt");
     fild.drawFild(graphics);
 }