public override ActionBase GetAction() { if (this.SpotifyActionTypeComboBox.SelectedIndex >= 0) { SpotifyActionTypeEnum actionType = EnumHelper.GetEnumValueFromString <SpotifyActionTypeEnum>((string)this.SpotifyActionTypeComboBox.SelectedItem); return(new SpotifyAction(actionType)); } return(null); }
public SpotifyAction(SpotifyActionTypeEnum spotifyType) : this() { this.SpotifyType = spotifyType; }