public override void ViewDidLoad() { base.ViewDidLoad(); fireworks = new SimpleParticleGen(UIImage.FromFile("xamlogo.png"), View); buttonStart.TouchUpInside += delegate(object sender, EventArgs e) { fireworks.Start(); }; }
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(); // }; }
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(); }; }
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; }; }
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; }
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); } }; }