public override int CompareTo(object obj) { int ret; outputFormatContentAvailability p = (obj as outputFormatContentAvailability); ret = this.restrictionmode.CompareTo(p.restrictionmode); if (ret != 0) { return(ret); } ret = this.imageConstraint.CompareTo(p.imageConstraint); if (ret != 0) { return(ret); } ret = this.retentionMode.CompareTo(p.retentionMode); if (ret != 0) { return(ret); } ret = this.retentionState.CompareTo(p.retentionState); if (ret != 0) { return(ret); } return(this.encryptionMode.CompareTo(p.encryptionMode)); }
/* * コピーコントロールの候補 * CopyControlTYpe DigitalRecordingControl RestrictionMode * 制御しない #または0 # # * 無制限 1 0 # * ねばー 1 3 # * ダビ10 1 2 1 * コピワン 1 2 0 */ public copyControlData(Int32 pattern) { this.contents = new outputFormatContentAvailability(); this.copyControl = new outputFormatCopyControl(); Int32 p = (pattern % 6); switch (p) { case 1: this.descripion = "制御しない"; this.copyControl.copyControl.value = 0; this.copyControl.recoriding.value = 0; this.contents.restrictionmode.value = 0; break; case 2: this.descripion = "無制限"; this.copyControl.copyControl.value = 1; this.copyControl.recoriding.value = 1; this.contents.restrictionmode.value = 0; break; case 3: this.descripion = "ねばー"; this.copyControl.copyControl.value = 1; this.copyControl.recoriding.value = 3; this.contents.restrictionmode.value = 0; break; case 4: // ダビ10 this.descripion = "ダビ10"; this.copyControl.copyControl.value = 1; this.copyControl.recoriding.value = 2; this.contents.restrictionmode.value = 1; break; case 5: // こぴわん this.descripion = "コピワン"; this.copyControl.copyControl.value = 1; this.copyControl.recoriding.value = 2; this.contents.restrictionmode.value = 0; break; default: this.contents = null; this.copyControl = null; break; } }