Пример #1
0
 private void ctxmImportEntity_Click(object sender, EventArgs e)
 {
     if (fileDialog.ShowDialog() == DialogResult.OK)
     {
         var entity = al.GetEntityFromClassFile(fileDialog.FileName);
         proj.Entities.Add(entity);
         PopulateTree();
     }
 }
Пример #2
0
 private void mnuGenFromFile_Click(object sender, EventArgs e)
 {
     if (fileDialog.ShowDialog() == DialogResult.OK)
     {
         string path  = fileDialog.FileName;
         var    logic = new AssemblyLogic();
         var    info  = logic.GetEntityFromClassFile(path);
         // find the current tab
         var curTab = tabMain.SelectedTab;
         var er     = curTab.Controls[0] as EditRequest;
         er.createFieldsFromEntity(info);
     }
 }