Ejemplo n.º 1
0
        public void AddImgInteraption(Interaption I)
        {
            PictureBox P = new PictureBox();

            P.Size      = new Size(50, 50);
            P.BackColor = Color.Transparent;
            P.SizeMode  = PictureBoxSizeMode.Zoom;

            switch (I)
            {
            case Interaption.Energy:
                P.Image = Image.FromFile(@"..\..\Animation\IconInterrupt_Energy.png");
                break;

            case Interaption.Human:
                P.Image = Image.FromFile(@"..\..\Animation\IconInterrupt_Human.png");
                break;

            case Interaption.Fire:
                P.Image = Image.FromFile(@"..\..\Animation\IconInterrupt_Fire.png");
                break;

            case Interaption.Pause:
                P.Image = Image.FromFile(@"..\..\Animation\IconInterrupt_Pause.png");
                break;
            }

            P.Location = new Point(629, 12 + (List_PictureBox.Count * 50));

            List_PictureBox.Add(P);

            Controls.Add(P);
        }
Ejemplo n.º 2
0
        public void Interrupt(Interaption I)
        {
            RA.Interrupt(I);

            AddImgInteraption_Delegate AddImgInteraption_D = delegate(Interaption Q)
            {
                AddImgInteraption(Q);
            };

            Invoke(AddImgInteraption_D, new object[] { I });
        }
 public void Interrupt(Interaption I)
 {
     ListInteraption.Add(I);
 }