private void m_btnPrintWrapper_Click(object sender, EventArgs e) { if (GetSelectedLibraryElementName() == null) { MessageBox.Show("No library element selected", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } PrintComponentDeclaration printCmd = new PrintComponentDeclaration(); printCmd.LibraryElement = GetSelectedLibraryElementName(); Commands.CommandExecuter.Instance.Execute(printCmd); }
public override string ToString() { StringBuilder buffer = new StringBuilder(); buffer.AppendLine("Name: " + Name); try { buffer.AppendLine(ResourceShape != null ? "ResourceShape: " + ResourceShape.ToString() : "No resource shape provided"); } catch (NullReferenceException) { buffer.AppendLine("Warning: This binary libray element seems to be out of date. Regenerate it by reading in the XDL version with the command AddXDLLibraryElement"); } PrintComponentDeclaration printCmd = new PrintComponentDeclaration(); printCmd.LibraryElement = Name; printCmd.Do(); buffer.AppendLine(printCmd.OutputManager.GetVHDLOuput()); return(buffer.ToString()); }