/// <summary> /// Handles the Click event of the btnConfirm control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void btnConfirm_Click(object sender, EventArgs e) { if (ValidateContent()) { Result = GenerateCode(); DialogResult = DialogResult.OK; } }
/// <summary> /// Inserts the generated code. /// </summary> /// <param name="entity">The entity.</param> public void InsertGeneratedCode(Base.Entities.Tools.CodeGenerator.CodeGeneratorEntity entity) { InsertVariables(entity.Variables); InsertFunctions(entity.Functions); InsertEmbedCode(entity.EmbeddedCode); }
/// <summary> /// Generates the code. /// </summary> /// <returns></returns> private Base.Entities.Tools.CodeGenerator.CodeGeneratorEntity GenerateCode() { var entity = new Base.Entities.Tools.CodeGenerator.CodeGeneratorEntity(); return(entity); }