Example #1
0
        public void AddTextureClick(object sender, EventArgs e)
        {
            TextureImportForm newwindow = new TextureImportForm();

            newwindow.Submitted += ConsumeList;
            newwindow.Activate();
            newwindow.Show();
        }
Example #2
0
        public void Load(StreamReader reader)
        {
            reader.ReadLine();                          //getting past the blank spot
            TextureSize = int.Parse(reader.ReadLine()); //causing trouble
            int count = int.Parse(reader.ReadLine());

            for (int i = 0; i < count; i++)//were trying to simulate a user clicking the button here
            {
                TextureImportForm temp = new TextureImportForm(reader.ReadLine(), TextureSize);
                temp.Submitted += ConsumeList;
                temp.Submit_Click(temp, new EventArgs());
                temp.Dispose();
            }
        }