/// <summary> /// Handles the OnClick event of the lbtnSave control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> protected override void lbtnNext_OnClick(object sender, EventArgs e) { if (MaterialList.Any(material => (MaterialType)material.Type == MaterialType.Form && material.Value == null)) { pnlValdationForm.Visible = true; return; } ((WorkflowTemplateWizard)FindControlRecursive(Page, "ucWorkflowTemplateWizard")).Save(CurrentWorkflowTemplate); CurrentWorkflowTemplate = Guid.Empty; }