private void mnuiOpen_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "Lisp file |*.lsp"; ofd.ShowDialog(); string lispPath = ofd.FileName; Enesy.EnesyCAD.IO.LispFileReader lfr = new Enesy.EnesyCAD.IO.LispFileReader(lispPath); SendToDataSource(lfr.GetFunctions()); }
public XFImporter(string path) { InitializeComponent(); this.DataStructure(); this.grvMain.DataSource = this.functionInfos; this.schFilter.DataSource = this.functionInfos; this.rchdDescription.DataSource = this.functionInfos; this.rchdDescription.DisplayMember = "Description"; Enesy.EnesyCAD.IO.LispFileReader lfr = new Enesy.EnesyCAD.IO.LispFileReader(path); SendToDataSource(lfr.GetFunctions()); }