Ejemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            fireworks = new SimpleParticleGen(UIImage.FromFile("xamlogo.png"), View);

            buttonStart.TouchUpInside += delegate(object sender, EventArgs e) {
                fireworks.Start();
            };
        }
Ejemplo n.º 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            fireworks = new SimpleParticleGen(UIImage.FromFile("Xamarin_logo_1.png"), View);

            //buttonStart.TouchUpInside += delegate (object sender, EventArgs e)
            // {
            //    fireworks.Start();
            // };
        }
Ejemplo n.º 3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.
            fireworks = new SimpleParticleGen(UIImage.FromFile("xamlogo.png"), this.View);

            buttonStart.TouchUpInside += delegate(object sender, EventArgs e)
            {
                fireworks.Start();
            };
        }
Ejemplo n.º 4
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            fireworks = new SimpleParticleGen(UIImage.FromFile("xamlogo.png"), View);

            buttonStart.TouchUpInside += (sender, ea) =>
            {
                fireworks.Start();
                ((UIButton)sender).BackgroundColor = UIColor.Orange;
            };
        }
Ejemplo n.º 5
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            _fireworks = new SimpleParticleGen(
                UIImage.FromFile("xamlogo.png"),
                this.View,
                this.View.Center);

            NightValueChanged(this.switchNight);

            buttonStart.TouchUpInside += (sender, e) =>
            {
                _fireworks.Start();
            };

            //buttonAbout.TouchUpInside += OnAbout;
        }
Ejemplo n.º 6
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            fireworks = new SimpleParticleGen(UIImage.FromFile("xamlogo.png"), View);
            fireworks.ContinousParticles = true;

            // configure the start button
            startButton.Layer.CornerRadius = 5.0f;
            startButton.TouchUpInside     += delegate(object sender, EventArgs e)
            {
                if (fireworks.isRunning)
                {
                    fireworks.Stop();
                    startButton.SetTitle("Start Show", UIControlState.Normal);
                }
                else
                {
                    fireworks.Start();
                    startButton.SetTitle("End Show", UIControlState.Normal);
                }
            };
        }