private void AddButtonClick(object sender, EventArgs e) { try { AddForm addForm = new AddForm(); addForm.CodeGroupAdded += new EventHandler<CodeGroupTypeEventArgs>(CodeGroupAdded); addForm.StartPosition = FormStartPosition.CenterParent; addForm.ShowDialog(this); } catch (Exception ex) { Utilities.HandleException(ex); } }
private void AddButtonClick(object sender, EventArgs e) { try { AddForm addForm = new AddForm(); addForm.CodeGroupAdded += new EventHandler <CodeGroupTypeEventArgs>(CodeGroupAdded); addForm.StartPosition = FormStartPosition.CenterParent; addForm.ShowDialog(this); } catch (Exception ex) { Utilities.HandleException(ex); } }