コード例 #1
0
ファイル: CGMRestrictedText.cs プロジェクト: skipme/ComGraMet
 public static RTType MakeType(Command c, CGMImage parent)
 {
     RTType type;
     int typ = BinaryUtil.makeIndex(c, parent.IntPrecision);
     switch (typ)
     {
         case 1:
             type = RTType.BASIC;
             break;
         case 2:
             type = RTType.BOXED_CAP;
             break;
         case 3:
             type = RTType.BOXED_ALL;
             break;
         case 4:
             type = RTType.ISOTROPIC_CAP;
             break;
         case 5:
             type = RTType.ISOTROPIC_ALL;
             break;
         case 6:
             type = RTType.JUSTIFIED;
             break;
         default:
             type = RTType.BASIC;
             break;
     }
     return type;
 }
コード例 #2
0
ファイル: CGMRestrictedText.cs プロジェクト: skipme/ComGraMet
        public CGMRestrictedText(Command c, CGMImage parent)
        {
            deltaWidth = BinaryUtil.makeVdc(c, parent.VDCtype, parent.VDCRealType, parent.IntPrecision);
            deltaHeight = BinaryUtil.makeVdc(c, parent.VDCtype, parent.VDCRealType, parent.IntPrecision);
            position = BinaryUtil.makePoint(c, parent.VDCtype, parent.VDCRealType, parent.IntPrecision);

            finalNotFinal = BinaryUtil.makeEnum(c);
            Text = BinaryUtil.getString(c);

            type = parent.RestrictedTextType;
        }
コード例 #3
0
ファイル: RTTypeTest.cs プロジェクト: sethuit/MSDNSWebAdmin
        public static RTType GetRTRR()
        {
            var server = ServerTest.GetServer();
            var zone   = ZoneTest.GetZone();

            var record = zone.GetRecords().FirstOrDefault(i => i.OwnerName == "rt." + zone.Name);

            if (record == null)
            {
                record = RTType.CreateInstanceFromPropertyData(server, server.Name, zone.Name, "rt." + zone.Name, DNSManagement.RR.ResourceRecord.RecordClassEnum.IN, null, "imhost", 1);
            }
            return((RTType)record.UnderlyingRecord);
        }