private void deletePartNumbersButton_Click(object sender, EventArgs e) { var objectSelector = new PluginObjectSelector(); var selectedParts = objectSelector.GetSelectedParts(); var partNumerator = new PartNumerator(); partNumerator.ClearNumbers(selectedParts); }
private void numberPartsButton_Click(object sender, EventArgs e) { var parseResult = int.TryParse(startPartNumberTextBox.Text, out int initialPartNumber); if (parseResult) { var objectSelector = new PluginObjectSelector(); var selectedParts = objectSelector.GetSelectedParts(); var partNumerator = new PartNumerator(); partNumerator.InitialNumber = initialPartNumber; partNumerator.ProjectCode = projectCodeTextBox.Text; partNumerator.Number(selectedParts); } }