private void toolStripButton1_Click(object sender, EventArgs e) { List <String> fileNames = new List <string>(); foreach (object selectedItem in modelsListBox.SelectedItems) { Asset asset = null; try { asset = (Asset)selectedItem; } catch (InvalidCastException) { continue; } fileNames.Add(asset.Name); } ModelExportForm modelExportForm = new ModelExportForm(); modelExportForm.FileNames = fileNames; modelExportForm.ShowDialog(); }
private void extractSelectedModels() { List <string> fileNames = new List <string>(); foreach (object selectedItem in modelsListBox.SelectedItems) { Asset asset = null; try { asset = (Asset)selectedItem; } catch (InvalidCastException) { continue; } fileNames.Add(asset.Name); } ModelExportForm modelExportForm = new ModelExportForm(); modelExportForm.FileNames = fileNames; modelExportForm.ShowDialog(); }
private void extractSelectedModels() { List<string> fileNames = new List<string>(); foreach (object selectedItem in modelsListBox.SelectedItems) { Asset asset = null; try { asset = (Asset)selectedItem; } catch (InvalidCastException) { continue; } fileNames.Add(asset.Name); } ModelExportForm modelExportForm = new ModelExportForm(); modelExportForm.FileNames = fileNames; modelExportForm.ShowDialog(); }
private void toolStripButton1_Click(object sender, EventArgs e) { List<String> fileNames = new List<string>(); foreach (object selectedItem in modelsListBox.SelectedItems) { Asset asset = null; try { asset = (Asset)selectedItem; } catch (InvalidCastException) { continue; } fileNames.Add(asset.Name); } ModelExportForm modelExportForm = new ModelExportForm(); modelExportForm.FileNames = fileNames; modelExportForm.ShowDialog(); }