コード例 #1
0
 private void Properties_PropertyClicked(PropertyPage props, ClickType click, int propIdx, int rowIdx, int colIdx)
 {
     if (click == ClickType.Button && (propIdx == 3 || propIdx == 4))
     {
         var keys = new bool[checkToEffect.Count];
         for (int i = 0; i < keys.Length; i++)
         {
             keys[i] = propIdx == 3;
         }
         props.UpdateCheckBoxList(2, keys);
     }
 }
コード例 #2
0
        private void SelectClicked(PropertyPage props, int propertyIndex)
        {
            var keys = new bool[MidiFileReader.MidiDrumKeyNames.Length];

            if (propertyIndex == 4)
            {
                for (int i = 0; i < keys.Length; i++)
                {
                    keys[i] = true;
                }
            }

            props.UpdateCheckBoxList(3, keys);
        }
コード例 #3
0
        private void MappingProperties_PropertyClicked(PropertyPage props, ClickType click, int propIdx, int rowIdx, int colIdx)
        {
            if (click == ClickType.Button && (propIdx == 2 || propIdx == 3))
            {
                var keys = new bool[MidiFileReader.MidiDrumKeyNames.Length];

                if (propIdx == 2)
                {
                    for (int i = 0; i < keys.Length; i++)
                    {
                        keys[i] = true;
                    }
                }

                props.UpdateCheckBoxList(1, keys);
            }
        }