// TODO: Auto gen public static Bomb __NEW(FireWorks parent) { Bomb toRet = new Bomb(); InitBomb(toRet, parent); return(toRet); }
private void Button_Click(object sender, RoutedEventArgs e) { IFire canonfire = new FireWorks(); canonfire.Fst(); canonfire.Scnd(); canonfire.Thrt(); ImpFireWorks newfire = new ImpFireWorks(); newfire.NeverMore(); }
static void InitBomb(Bomb b, FireWorks parent) { b.parent = parent; b.sparks = new Spark[FireWorks.SPARK_COUNT]; for (int i = 0; i < b.sparks.Length; ++i) { b.sparks[i] = new Spark(); b.sparks[i].panel = new PictureBox(); b.sparks[i].panel.Image = Image.FromFile("spark.gif"); //sparks[i].panel.Image = new Bitmap(typeof(FireWorks),"spark.gif"); b.parent.Add(b.sparks[i].panel); } }
public Bomb(FireWorks parent) { InitBomb(this, parent); }
static void InitBomb(Bomb b,FireWorks parent) { b.parent = parent; b.sparks = new Spark[FireWorks.SPARK_COUNT]; for (int i = 0; i < b.sparks.Length; ++i) { b.sparks[i] = new Spark(); b.sparks[i].panel = new PictureBox(); b.sparks[i].panel.Image = Image.FromFile("spark.gif"); //sparks[i].panel.Image = new Bitmap(typeof(FireWorks),"spark.gif"); b.parent.Add(b.sparks[i].panel); } }
// TODO: Auto gen public static Bomb __NEW(FireWorks parent) { Bomb toRet = new Bomb(); InitBomb(toRet,parent); return toRet; }