private void Close_Click(object sender, RoutedEventArgs e) { if (_cancelable) { AddNewPart?.Invoke(string.Empty, _newPackage); HideHandlerDialog(); } }
private void PartType_Click(object sender, RoutedEventArgs e) { _result = ((Button)(sender)).Content.ToString(); AddNewPart?.Invoke(_result, _newPackage); HideHandlerDialog(); }