Пример #1
0
        /*
         *  コピーコントロールの候補
         *  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;
            }
        }
Пример #2
0
        public override int CompareTo(object obj)
        {
            int ret;
            outputFormatCopyControl p = (obj as outputFormatCopyControl);

            ret = this.recoriding.CompareTo(p.recoriding);
            if (ret != 0)
            {
                return(ret);
            }
            ret = this.copyControl.CompareTo(p.copyControl);
            if (ret != 0)
            {
                return(ret);
            }
            return(this.aps.CompareTo(p.aps));
        }