Example #1
0
        public MainWindow()
        {
            InitializeComponent();

            Calc.Init();

            int Count = 16;

            Pole   = new TPole(g, g2, tbScore, Count);
            Screen = new TScreen(Pole);
        }
Example #2
0
        public TScreen(TPole Pole)
        {
            this.Pole   = Pole;
            Pole.Screen = this;

            //spFire = new SoundPlayer("fire.wav");
            //spCrush = new SoundPlayer("crush.wav");

            spFire        = new SoundPlayer();
            spFire.Stream = Properties.Resources.fire;

            spCrush        = new SoundPlayer();
            spCrush.Stream = Properties.Resources.crush;

            X = 0;
            Y = 0;

            Pole.DrawStar();
            Pole.DrawTarget();
        }