예제 #1
0
 public EagleExporter(string destBoardFile, LedBoardBuilder board)
 {
     if (!destBoardFile.EndsWith(".brd"))
         destBoardFile += ".brd";
     BoardFile = destBoardFile;
     _board = board;
 }
예제 #2
0
 protected static bool CreateBoardFile(string boardFile, LedBoardBuilder board)
 {
     using (var file = new StreamWriter(boardFile))
     {
         board.ToXml().Save(file);
     }
     return true;
 }
예제 #3
0
 protected static bool CreateBoardFile(string boardFile, LedBoardBuilder board)
 {
     using (var file = new StreamWriter(boardFile))
     {
         board.ToXml().Save(file);
     }
     return(true);
 }
예제 #4
0
 public EagleExporter(string destBoardFile, LedBoardBuilder board)
 {
     if (!destBoardFile.EndsWith(".brd"))
     {
         destBoardFile += ".brd";
     }
     BoardFile = destBoardFile;
     _board    = board;
 }
예제 #5
0
 /// <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;
 }
예제 #6
0
 /// <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;
 }