Esempio n. 1
0
    // TODO: Auto gen
    public static Bomb __NEW(FireWorks parent)
    {
        Bomb toRet = new Bomb();

        InitBomb(toRet, parent);
        return(toRet);
    }
Esempio n. 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            IFire canonfire = new FireWorks();

            canonfire.Fst();
            canonfire.Scnd();
            canonfire.Thrt();
            ImpFireWorks newfire = new ImpFireWorks();

            newfire.NeverMore();
        }
Esempio n. 3
0
    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);
        }
    }
Esempio n. 4
0
 public Bomb(FireWorks parent)
 {
     InitBomb(this, parent);
 }
Esempio n. 5
0
    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);

            }
    }
Esempio n. 6
0
 // TODO: Auto gen
 public static Bomb __NEW(FireWorks parent)
 {
     Bomb toRet = new Bomb();
         InitBomb(toRet,parent);
         return toRet;
 }
Esempio n. 7
0
 public Bomb(FireWorks parent)
 {
     InitBomb(this, parent);
 }