private void buttonCollageFrame_Click(object sender, EventArgs e) { m_AllCollagesCollection = CollagesFactory.CreateAllCollages(); FormCollageFrameOptions collageForm = new FormCollageFrameOptions(m_AllCollagesCollection); collageForm.FormClosing += formCollage_FormClosing; collageForm.ShowDialog(); }
private void formCollage_FormClosing(object sender, FormClosingEventArgs e) { FormCollageFrameOptions form = sender as FormCollageFrameOptions; if (form.DialogResult == DialogResult.OK) { m_FrameUserChoice = form.GetUserChoice(); groupBoxPhotosChooser.Enabled = true; buttonSelectPhotos.Enabled = true; } }