public override bool Equals(System.Object object_Renamed) { bool isEqual = false; if (object_Renamed is ButtonCondAction) { ButtonCondAction buttonCondAction = (ButtonCondAction)object_Renamed; if ((buttonCondAction.keyPress == this.keyPress) && (buttonCondAction.overDownToIdle == this.overDownToIdle) && (buttonCondAction.idleToOverDown == this.idleToOverDown) && (buttonCondAction.outDownToIdle == this.outDownToIdle) && (buttonCondAction.outDownToOverDown == this.outDownToOverDown) && (buttonCondAction.overDownToOutDown == this.overDownToOutDown) && (buttonCondAction.overDownToOverUp == this.overDownToOverUp) && (buttonCondAction.overUpToOverDown == this.overUpToOverDown) && (buttonCondAction.overUpToIdle == this.overUpToIdle) && (buttonCondAction.idleToOverUp == this.idleToOverUp) && (((buttonCondAction.actionList == null) && (this.actionList == null)) || ((buttonCondAction.actionList != null) && (this.actionList != null) && buttonCondAction.actionList.Equals(this.actionList)))) { isEqual = true; } } return(isEqual); }
private void collectCondActions(ButtonCondAction[] actions) { for (int i = 0; i < actions.Length; i++) { collectActions(actions[i].actionList); } }
private ButtonCondAction decodeButtonCondAction(int length) { ButtonCondAction a = new ButtonCondAction(); r.syncBits(); a.keyPress = r.readUBits(7); a.overDownToIdle = r.readBit(); a.idleToOverDown = r.readBit(); a.outDownToIdle = r.readBit(); a.outDownToOverDown = r.readBit(); a.overDownToOutDown = r.readBit(); a.overDownToOverUp = r.readBit(); a.overUpToOverDown = r.readBit(); a.overUpToIdle = r.readBit(); a.idleToOverUp = r.readBit(); ActionDecoder actionDecoder = new ActionDecoder(r, swd); actionDecoder.KeepOffsets = keepOffsets; a.actionList = actionDecoder.decode(length - 2); return a; }