public EagleExporter(string destBoardFile, LedBoardBuilder board) { if (!destBoardFile.EndsWith(".brd")) destBoardFile += ".brd"; BoardFile = destBoardFile; _board = board; }
protected static bool CreateBoardFile(string boardFile, LedBoardBuilder board) { using (var file = new StreamWriter(boardFile)) { board.ToXml().Save(file); } return true; }
protected static bool CreateBoardFile(string boardFile, LedBoardBuilder board) { using (var file = new StreamWriter(boardFile)) { board.ToXml().Save(file); } return(true); }
public EagleExporter(string destBoardFile, LedBoardBuilder board) { if (!destBoardFile.EndsWith(".brd")) { destBoardFile += ".brd"; } BoardFile = destBoardFile; _board = board; }
/// <summary> /// /// </summary> /// <param name="destZipFile">The location to save a zip file of the GERBER files</param> /// <param name="board">The model from which to generate the board</param> public GerberExporter(string destZipFile, LedBoardBuilder board) : base(GetTempBoardFile(), board) { _zip = destZipFile; }