SchemaFactor.Vst.MidiMapperX.MapNoteItem.isDefined C# (CSharp) Méthode

isDefined() public méthode

Determine if this mapping has been defined.
public isDefined ( Constants type ) : bool
type Constants Set to type to check
Résultat bool
        public bool isDefined(Constants.MapTypes type)
        {
            switch (type)
            {
                case Constants.MapTypes.ON:
                {
                    if (OutputBytesStringOn == null)
                    {
                        return false;
                    }

                    if (OutputBytesStringOn.Equals(""))
                    {
                        return false;
                    }
                }
                break;

                case Constants.MapTypes.OFF:
                {
                    if (OutputBytesStringOff == null)
                    {
                        return false;
                    }

                    if (OutputBytesStringOff.Equals(""))
                    {
                        return false;
                    }
                }
                break;

                case Constants.MapTypes.CC:
                {
                    if (OutputBytesStringCC == null)
                    {
                        return false;
                    }

                    if (OutputBytesStringCC.Equals(""))
                    {
                        return false;
                    }
                }
                break;

                default:
                    return false;
            }

            return true;
        }