All pastes #453412 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-22 23:52 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Net;
using System.IO;
using System.Collections;

namespace TestingStuff
{
    public partial class Form1 : Form
    {
        ArrayList x = new ArrayList();
        public Form1()
        {
			InitializeComponent();
			PictureBox[] MyPics = new PictureBox[] { pictureBox1, pictureBox1 };
			ImageEditor myEditor = new ImageEditor(MyPics);

			myEditor.ResetImages();

        }
    }
	class ImageEditor
	{
		PictureBox[] _Pics;
		public ImageEditor(PictureBox[] myPics)
		{
			_Pics = myPics;
		}
		public void ResetImages()
        {
			foreach (PictureBox pic in _Pics)
			{
				pic.ImageLocation = Application.StartupPath + @"\1.gif";
			}
        }
	}
}