public void AddTextureClick(object sender, EventArgs e) { TextureImportForm newwindow = new TextureImportForm(); newwindow.Submitted += ConsumeList; newwindow.Activate(); newwindow.Show(); }
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(); } }