private void File_CreateFromBrickMenu_Click(object sender, EventArgs e) { using (var dlg = new SelectBrickDialog()) { if (dlg.ShowDialog() == DialogResult.OK) { var selectedBrick = dlg.SelectedBrick; var project = PartProject.CreateFromLddPart(selectedBrick.PartId); LoadNewPartProject(project); } } }
private void SelectPartToExport() { using (var dlg = new SelectBrickDialog()) { if (dlg.ShowDialog() == DialogResult.OK) { PartToExport = dlg.SelectedBrick; PartBrowseTextBox.Value = dlg.SelectedBrick.PartId.ToString(); PartNameLabel.Text = dlg.SelectedBrick.Description; UpdateCanExport(); } } }