private object MicVolume_ConvertRef(object sender, MultiplesInputsConvert3EventArgs args) { if (args.Input1 == null) { args.Input1 = false; } if (args.Input2 == null) { args.Input2 = 1d; } switch (args.ChangedValueIndex) { case 0: if (args.Input0 is float) { args.Input1 = true; args.Input2 = (double)(float)args.Input0; } else { args.Input1 = false; } break; case 1: case 2: args.Input0 = true.Equals(args.Input1) ? (float?)(double)args.Input2 : null; break; } return(null); }
private object MicOk_Convert(object sender, MultiplesInputsConvert3EventArgs args) { if (args.Input1 == null) { return(false); } ISourcePlaylist selectedPlaylist = (ISourcePlaylist)args.Input0; bool isNewPlaylist = (bool)args.Input1; string newPlaylistName = (string)args.Input2; return(isNewPlaylist ? !string.IsNullOrWhiteSpace(newPlaylistName) : selectedPlaylist != null); }