コード例 #1
0
        public override string ToString()
        {
            var boxes = string.Join("\r\n", Boxes.Select(b => b.ToString()).ToArray());

            return(string.Format("OrgId: {0}, Inn: {1}, Kpp: {2}, FullName: {3}, ShortName: {4}, Boxes:\r\n {5}, " +
                                 "Ogrn: {6}, FnsParticipantId: {7}, Address: {8}, FnsRegistrationDate: {9}, " +
                                 "Departments: {10}, IfnsCode: {11}, IsPilot: {12}, IsActive: {13}, IsTest: {14}, " +
                                 "IsBranch: {15}, IsRoaming: {16}, IsEmployee: {17}, InvitationCount: {18}, " +
                                 "SearchCount: {19}, Sociability: {20}, LiquidationDate: {21}, CertificateOfRegistryInfo: {22}",
                                 OrgId, Inn, Kpp, FullName, ShortName, boxes, Ogrn, FnsParticipantId, Address, FnsRegistrationDate,
                                 Departments, IfnsCode, IsPilot, IsActive, IsTest, IsBranch, IsRoaming, IsEmployee, InvitationCount,
                                 SearchCount, Sociability, LiquidationDate, CertificateOfRegistryInfo));
        }
コード例 #2
0
ファイル: ResourcePackBlockModel.cs プロジェクト: K4mey/Alex
 private BoundingBox[] GetBoxes(Vector3 position)
 {
     return(Boxes.Select(x => new BoundingBox(position + x.Min, position + x.Max)).ToArray());
 }
コード例 #3
0
        public override string ToString()
        {
            var boxes = string.Join("\r\n", Boxes.Select(b => b.ToString()).ToArray());

            return(string.Format("OrgId: {0}, Inn: {1}, Kpp: {2}, FullName: {3}, ShortName: {4}, Boxes:\r\n{5}, Ogrn: {6}, IsPilot: {7}, IsActive: {8}, IsTest: {9}", OrgId, Inn, Kpp, FullName, ShortName, boxes, Ogrn, IsPilot, IsActive, IsTest));
        }
コード例 #4
0
 private Rect2D CalculateRect() => Boxes.Select(i => i.Rect).Concat(Lines.Select(i => i.Rect)).Union();
コード例 #5
0
 /// <inheritdoc />
 public override IEnumerable <BoundingBox> GetBoundingBoxes(Vector3 blockPos)
 {
     return(Boxes.Select(x => x.OffsetBy(blockPos)));
 }