private void Btn_Add_Click(object sender, EventArgs e) { if (CreateCustomProcedure != null) { DMIProcedureConfig aConfig = new DMIProcedureConfig(); aConfig.ProcedureName = TxtB_ProcedureName.Text; aConfig.VariableInName = TxtB_VariableIn.Text; aConfig.VariableOutName = TxtB_VariableOut.Text; aConfig.VariableRequestName = TxtB_VariableRequest.Text; aConfig.VariableRequestDisabledName = TxtB_VariableRequestDisabled.Text; aConfig.Type = (CustomProcedureType)Enum.Parse(typeof(CustomProcedureType), CbB_Types.SelectedValue.ToString()); CreateCustomProcedure(aConfig); } this.Hide(); }
private void Btn_Add_Click(object sender, EventArgs e) { if (CreateCustomProcedure != null) { DMIProcedureConfig aConfig = new DMIProcedureConfig(); aConfig.ProcedureName = TxtB_ProcedureName.Text; aConfig.VariableInName = TxtB_VariableIn.Text; aConfig.VariableOutName = TxtB_VariableOut.Text; aConfig.VariableRequestName = TxtB_VariableRequest.Text; aConfig.VariableRequestDisabledName = TxtB_VariableRequestDisabled.Text; aConfig.Type = (CustomProcedureType)Enum.Parse(typeof(CustomProcedureType), CbB_Types.SelectedValue.ToString()); CreateCustomProcedure(aConfig); } this.Hide(); }