private void renderSettingsForm_Closed(object sender, EventArgs e) { //TODO : REMOVE DELEGATE renderSettingsForm = null; }
private void mnuRenderSettings_Click(object sender, System.EventArgs e) { if(renderSettingsForm == null) { renderSettingsForm = new RenderSettingsForm(CameraFactory.Instance,renderSettings); renderSettingsForm.Closed += new EventHandler(renderSettingsForm_Closed); renderSettingsForm.Show(); } renderSettingsForm.Select(); }