/// <summary> /// Constructor for the WorkPath class /// </summary> /// <param name="projectPath">String containing full filename of Xilinx .ise /// project file</param> /// <param name="filePath">String containing full filename of sketch xml</param> /// <param name="ink">Microsoft.Ink.Ink object</param> public WorkPath(String projectPath, String filePath, Microsoft.Ink.Ink ink) { this.filePath = filePath; //converts ink to sketch ReadInk newSketch = new ReadInk(ink); this.sketch = newSketch.Sketch; this.projectPath = projectPath; }
/// <summary> /// Handler for the "simulate" button. When clicked, this method saves the ink /// in the MIT XML format used by Harvey Mudd. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void sim_Click(object sender, EventArgs e) { inkCol.AutoRedraw = true; ReadInk newSketch = new ReadInk(inkCol.Ink); Sketch.Sketch sketch = newSketch.Sketch; String filename = XMLWrite(sketch); String extensionlessFilename = Path.GetFileNameWithoutExtension(filename); XilinxRun(filename); simulate(filename); return; }