예제 #1
0
        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());
        }
예제 #2
0
 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());
 }