public void Initialize(ProcedureSchema procedure) { if (procedure == null) { throw new ArgumentNullException("procedure"); } this.procedure = procedure; entryName.Text = procedure.Name; if (action == SchemaActions.Alter) { sqlEditor.Text = schemaProvider.GetProcedureAlterStatement(procedure); if (commentEditor != null) { commentEditor.Comment = procedure.Comment; } } else { sqlEditor.Text = procedure.Definition; } }