Ejemplo n.º 1
0
 private void OnTitleAnimationCompleted(object sender, EventArgs e)
 {
     if (TitleBlock.IsMouseOver)
     {
         (TitleBlock.FindResource("TitleSlide") as Storyboard)?.Begin();
     }
 }
Ejemplo n.º 2
0
    //private Transform chilledObject;

    //private Transform child;

    // Start is called before the first frame update
    void Start()
    {
        // audioSource = GetComponent<AudioSource>();

        rb2 = GetComponent <Rigidbody2D>();

        createObject = GameObject.Find("CreateBlock");
        createScript = createObject.GetComponent <TitleBlock>();
    }
Ejemplo n.º 3
0
        public void A_New_TitleBlock_Has_Title_Line()
        {
            var expectedString = "Mocked Title Style: Features";
            var mockStyle      = new MockStylist();

            var    titleBlock   = new TitleBlock(mockStyle);
            string actualString = titleBlock.ToString();

            Check.That(actualString).Contains(expectedString);
        }
        private static void AddTitle(Test test, Application.Models.Spreadsheet.Metadata metadata, ISpreadsheetWriter spreadsheetWriter)
        {
            var titleBlock = new TitleBlock(spreadsheetWriter.CurrentPosition,
                                            test.Name,
                                            metadata.Created,
                                            metadata.ApplicationVersion);

            titleBlock
            .Write(spreadsheetWriter);
        }
Ejemplo n.º 5
0
        public void A_New_TitleBlock_Has_Generation_Line()
        {
            var expectedString = "Generated on: ";
            var mockStyle      = new MockStylist();

            var    titleBlock   = new TitleBlock(mockStyle);
            string actualString = titleBlock.ToString();

            Check.That(actualString).Contains(expectedString);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Initializes a new instance of Axis class
        /// </summary>
        public Axis()
        {
            TitleBlock = BindATextBlock();

            this.SetIfNotSet(SeparatorProperty, new Separator());
            this.SetIfNotSet(SectionsProperty, new SectionsCollection());

            TitleBlock.SetBinding(TextBlock.TextProperty,
                                  new Binding {
                Path = new PropertyPath("Title"), Source = this
            });
        }
Ejemplo n.º 7
0
        public Axis()
        {
            TitleBlock = BindATextBlock();
            SetValue(SeparatorProperty, new Separator());
            SetValue(ShowLabelsProperty, true);
            SetValue(SectionsProperty, new SectionsCollection());

            TitleBlock.SetBinding(TextBlock.TextProperty,
                                  new Binding {
                Path = new PropertyPath(TitleProperty), Source = this
            });
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Initializes a new instance of Axis class
        /// </summary>
        public Axis()
        {
            TitleBlock = BindATextBlock();
            this.SetIfNotSet(SeparatorProperty, new Separator());
            this.SetIfNotSet(ShowLabelsProperty, true);
            this.SetIfNotSet(SectionsProperty, new SectionsCollection());
            this.SetIfNotSet(ForegroundProperty, new SolidColorBrush(Color.FromArgb(255, 170, 170, 170)));

            TitleBlock.SetBinding(TextBlock.TextProperty,
                                  new Binding {
                Path = new PropertyPath("Title"), Source = this
            });
        }
Ejemplo n.º 9
0
        /// <summary>
        ///     Initializes a new instance of Axis class
        /// </summary>
        public Axis()
        {
            TitleBlock = BindATextBlock();
            SetCurrentValue(SeparatorProperty, new Separator());
            SetCurrentValue(ShowLabelsProperty, true);
            SetCurrentValue(SectionsProperty, new SectionsCollection());
            SetCurrentValue(ForegroundProperty, new SolidColorBrush(Color.FromRgb(170, 170, 170)));

            TitleBlock.SetBinding(TextBlock.TextProperty,
                                  new Binding {
                Path = new PropertyPath(TitleProperty), Source = this
            });
        }
Ejemplo n.º 10
0
        public void Write_WithTitle_PutsTitleOnRightPosition()
        {
            // Arrange
            var expectedTitle              = _fixture.Create <Name>();
            var expectedCreatedOn          = _fixture.Create <DateTime>();
            var expectedApplicationVersion = _fixture.Create <string>();
            var sut = new TitleBlock(_startpoint, expectedTitle, expectedCreatedOn, expectedApplicationVersion);

            // Act
            sut.Write(_spreadsheetWriter);

            // Assert
            _spreadsheet[0, 0].Should().Be(expectedTitle.Value);
        }
Ejemplo n.º 11
0
        public void Write_WithCreatedOn_PutsCreatedOnOnRightPosition()
        {
            // Arrange
            var expectedTitle              = _fixture.Create <Name>();
            var expectedCreatedOn          = _fixture.Create <DateTime>();
            var expectedApplicationVersion = _fixture.Create <string>();
            var sut = new TitleBlock(_startpoint, expectedTitle, expectedCreatedOn, expectedApplicationVersion);

            // Act
            sut.Write(_spreadsheetWriter);

            // Assert
            _spreadsheet[0, 1].Should().Be("Gemaakt op:");
            _spreadsheet[1, 1].Should().Be(expectedCreatedOn.ToString("dd-MM-yyyy"));
        }
Ejemplo n.º 12
0
 public void Explode()
 {
     IsExplosionActivated = false;
     Instantiate(_explosionsPrefabs[2], transform.position, Quaternion.identity);
     Collider2D[] blockList = Physics2D.OverlapCircleAll(
         new Vector2(transform.position.x, transform.position.y),
         1.5f,
         LayerMask.GetMask("Block")
         );
     foreach (var blockCollider in blockList)
     {
         TitleBlock block = blockCollider.GetComponent <TitleBlock>();
         block.RemoveBlock();
     }
 }
Ejemplo n.º 13
0
        public CoreSize UpdateTitle(ChartCore chart, double rotationAngle = 0)
        {
            if (TitleBlock.Parent == null)
            {
                if (Math.Abs(rotationAngle) > 1)
                {
                    TitleBlock.RenderTransform = new RotateTransform(rotationAngle);
                }

                chart.View.AddToView(TitleBlock);
            }

            TitleBlock.UpdateLayout();
            return(string.IsNullOrWhiteSpace(Title)
                ? new CoreSize()
                : new CoreSize(TitleBlock.RenderSize.Width, TitleBlock.RenderSize.Height));
        }
Ejemplo n.º 14
0
        private void SetupNewDrawingDocument(out DrawingDocument oDoc, out Sheet oSheet)
        {
            //new drawing document.
            oDoc = mApp.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject,
                                      mApp.FileManager.GetTemplateFile(DocumentTypeEnum.kDrawingDocumentObject, SystemOfMeasureEnum.kDefaultSystemOfMeasure,
                                                                       DraftingStandardEnum.kDefault_DraftingStandard, null), true) as DrawingDocument;

            //Create a new sheet.
            oSheet = oDoc.Sheets.Add(DrawingSheetSizeEnum.kA2DrawingSheetSize, PageOrientationTypeEnum.kDefaultPageOrientation, "A2", 0, 0);

            //Add the border.
            oSheet.AddBorder(oDoc.BorderDefinitions[cmbBorder.Text]);

            //Add  TitleBlock
            //MessageBox.Show(cmbTitle_Block.Text);
            TitleBlock oTitleBlock = oSheet.AddTitleBlock(oDoc.TitleBlockDefinitions[cmbTitle_Block.Text], null, null);
            //TitleBlock oTitleBlock = oSheet.AddTitleBlock(oDoc.TitleBlockDefinitions["Portasilo Drax Title Block (rev 2)"], null, null);
        }
        public void ConvertPostWithNoCode()
        {
            var title = new TitleBlock()
            {
                Author = "Bob Dobbs",
                PublicationDate = new DateTime(2010, 2, 3, 12, 13, 14, DateTimeKind.Utc),
                Title = "Post, Apocalyptic"
            };

            var postWithNoCode = Properties.Resources.PostWithNoCode;
            var converter = new GithubMarkdownConverter()
            {
                TitleBlockConverter = TitleBlockConverters.SimpleMarkdown
            };

            var result = converter.Convert(new BlogPost() { TitleBlock = title, Contents = postWithNoCode });
            Assert.AreEqual(Properties.Resources.PostWithNoCode_AsGitHubMarkdown, result);
        }
Ejemplo n.º 16
0
        public CoreSize UpdateTitle(ChartCore chart, double rotationAngle = 0)
        {
            if (TitleBlock.Parent == null)
            {
                if (Math.Abs(rotationAngle) > 1)
                {
                    TitleBlock.RenderTransform = new RotateTransform {
                        Angle = rotationAngle
                    }
                }
                ;

                chart.View.AddToView(TitleBlock);
            }

            TitleBlock.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));

            return(string.IsNullOrWhiteSpace(Title)
                ? new CoreSize()
                : new CoreSize(TitleBlock.DesiredSize.Width, TitleBlock.DesiredSize.Height));
        }
Ejemplo n.º 17
0
        private void AddSheetMetaData(Sheet sheet)
        {
            if (sheet.TitleBlock != null)
            {
                sheet.TitleBlock.Delete();
            }

            if (sheet.Border != null)
            {
                sheet.Border.Delete();
            }

            TitleBlockDefinition   tempTitleBlockDef  = GetTitleBlock();
            TitleBlockLocationEnum titleBlockLocation = GetTitleBlockLocation();

            string[] promptStrings = new string[] { "", "", "", "", "", "", "", "", "", "", "", "",
                                                    "", "", "", "", "", "", "", "", "", "", "", "", "", "" };

            TitleBlock titleBlockForCreatedSheet =
                sheet.AddTitleBlock(tempTitleBlockDef, titleBlockLocation, promptStrings);

            if (SelectedBorder.Equals("Default Border"))
            {
                sheet.AddDefaultBorder();
            }
            else
            {
                sheet.AddBorder(BorderDefinition: GetBorderDefinition(SelectedBorder));
            }

            sheet.ExcludeFromCount    = ExcludeFromCount;
            sheet.ExcludeFromPrinting = ExcludeFromPrinting;
            sheet.Name        = SheetName;
            sheet.Orientation = this.GetPageOrientation();

            if (drawDoc.ActiveSheet != sheet)
            {
                sheet.Activate();
            }
        }
        public void ConvertPostWithNoCode()
        {
            var title = new TitleBlock()
            {
                Author          = "Bob Dobbs",
                PublicationDate = new DateTime(2010, 2, 3, 12, 13, 14, DateTimeKind.Utc),
                Title           = "Post, Apocalyptic"
            };

            var postWithNoCode = Properties.Resources.PostWithNoCode;
            var converter      = new GithubMarkdownConverter()
            {
                TitleBlockConverter = TitleBlockConverters.SimpleMarkdown
            };

            var result = converter.Convert(new BlogPost()
            {
                TitleBlock = title, Contents = postWithNoCode
            });

            Assert.AreEqual(Properties.Resources.PostWithNoCode_AsGitHubMarkdown, result);
        }
Ejemplo n.º 19
0
        public ExtendedXlsFile TestExecuteBalansHierLev0_Valtage_220_330_Full(BalansHierLev0Result HierLev0,
                                                                              TExportExcelAdapterType ExportType, IVisualDataRequestObjectsNames getNameInterface)
        {
            Dictionary <ID_TypeHierarchy, string> dictionaryOfNames = HierLev0.DictionaryOfNames;
            InitData     data         = new InitData(HierLev0.VoltageClassPoints);
            InternalData internalData = new InternalData(ExportType);
            InitBlock    initBlock    = new InitBlock(data, internalData);

            Classes.TitleInfo titleData =
                new Classes.TitleInfo(getNameInterface.GetBalanceNameForHierLev0(HierLev0.BalanceId), HierLev0.DTStart, HierLev0.DTEnd);
            TitleBlock titleBlock = new TitleBlock(titleData);

            initBlock.AddBlock(titleBlock);
            HeaderFooterData  headFootData = new HeaderFooterData(HierLev0.VoltageClass, HierLev0.HighLimit);
            HeaderFooterBlock headerFooter = new HeaderFooterBlock(headFootData, internalData);

            initBlock.AddBlock(headerFooter);

            foreach (TIntegral_HierLev0_Values balanceSection in HierLev0.Result_Values)
            {
                BalancePartData balData = new BalancePartData(getNameInterface.GetBalanceSectionName(balanceSection.HierLev0Group_Name),
                                                              HierLev0.BalPartList.Where(x => x.IsUseInGeneralBalance).Select(x => x.Name).Contains(balanceSection.HierLev0Group_Name),
                                                              HierLev0.BalPartList.Where(x => x.IsRsk).Select(x => x.Name).Contains(balanceSection.HierLev0Group_Name));

                BalancePartBlock balPartBlock = new BalancePartBlock(balData, internalData);
                foreach (KeyValuePair <ID_IsOurSide, TIntegral_PS_ValuesForHierLev0> psBalSect in balanceSection.HierLev0DetailGroupResult)
                {
                    string psName;
                    TIntegral_PS_ValuesForHierLev0 psBalSectData = psBalSect.Value;
                    ID_IsOurSide     side = psBalSect.Key;
                    ID_TypeHierarchy key  = new ID_TypeHierarchy(enumTypeHierarchy.Dict_PS, -1);
                    key.TypeHierarchy = side.IsOurSide ? enumTypeHierarchy.Dict_PS : enumTypeHierarchy.Dict_Contr_PS;
                    key.ID            = side.ID;

                    if (!dictionaryOfNames.TryGetValue(key, out psName))
                    {
                        psName = getNameInterface.GetPSName(side.ID, !side.IsOurSide);
                    }
                    PsBlock psBlock = new PsBlock(psName, internalData);
                    foreach (TI_Integral_ValuesForHierLev0 tiPsBalSect in psBalSectData.TI_List)
                    {
                        string tIName = string.Empty;
                        key.TypeHierarchy = tiPsBalSect.TypeHierarchy;
                        key.ID            = tiPsBalSect.ID;
                        if (!dictionaryOfNames.TryGetValue(key, out tIName))
                        {
                            switch (tiPsBalSect.TypeHierarchy)
                            {
                            case enumTypeHierarchy.Dict_PS:
                                tIName = getNameInterface.GetPSName(tiPsBalSect.ID, !side.IsOurSide);
                                break;

                            case enumTypeHierarchy.Info_TI:
                                tIName = getNameInterface.GetTIName(tiPsBalSect.ID, false);
                                break;

                            case enumTypeHierarchy.Info_ContrTI:
                                tIName = getNameInterface.GetTIName(tiPsBalSect.ID, true);
                                break;

                            case enumTypeHierarchy.Info_TP:
                                tIName = getNameInterface.GetTPName(tiPsBalSect.ID);
                                break;
                            }
                        }

                        List <TVALUES_DB> inputValues;
                        List <TVALUES_DB> outputValues;
                        Data.Full.TiData  tiData = new Data.Full.TiData(tIName);
                        if (tiPsBalSect.Val_List.TryGetValue(1, out inputValues))
                        {
                            tiData.InputByVoltages.Add(tiPsBalSect.VoltageClassPoint, inputValues[0]);
                        }
                        if (tiPsBalSect.Val_List.TryGetValue(2, out outputValues))
                        {
                            tiData.OutputByVoltages.Add(tiPsBalSect.VoltageClassPoint, outputValues[0]);
                        }

                        TiBlock tiBlock = new TiBlock(tiData, internalData);
                        psBlock.AddBlock(tiBlock);
                    }
                    balPartBlock.AddBlock(psBlock);
                }
                headerFooter.AddBlock(balPartBlock);
            }

            ExtendedXlsFile xls = new ExtendedXlsFile(ExportType);

            initBlock.Render(xls);

            return(xls);
        }
Ejemplo n.º 20
0
        private void Button3_Click(object sender, EventArgs e)
        {
            //Create a new drawing document.
            DrawingDocument oDoc = mApp.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject,
                                                      mApp.FileManager.GetTemplateFile(DocumentTypeEnum.kDrawingDocumentObject,
                                                                                       SystemOfMeasureEnum.kDefaultSystemOfMeasure,
                                                                                       DraftingStandardEnum.kDefault_DraftingStandard,
                                                                                       null),
                                                      true) as DrawingDocument;

            //Create a new B size sheet.
            Sheet oSheet = oDoc.Sheets.Add(DrawingSheetSizeEnum.kA2DrawingSheetSize,
                                           PageOrientationTypeEnum.kDefaultPageOrientation,
                                           "1", 0, 0);

            //Add the default border.
            oSheet.AddDefaultBorder(null, null, null, null, null, null, null, null, null, null, null, null, null, null);

            //Add ANSI A TitleBlock
            TitleBlock oTitleBlock = oSheet.AddTitleBlock(oDoc.TitleBlockDefinitions["ISO"], null, null);

            //Open the part document, invisibly.
            PartDocument oBlockPart = mApp.Documents.Open(@"F:\Rcadz Source Control\Inventor Api\CSharp\Drawing Document\TestPart.ipt", false) as PartDocument;

            TransientGeometry oTG = mApp.TransientGeometry;

            //Create base drawing view
            DrawingView oBaseView = oSheet.DrawingViews.AddBaseView(oBlockPart as _Document, oTG.CreatePoint2d(10, 10), 1,
                                                                    ViewOrientationTypeEnum.kFrontViewOrientation,
                                                                    DrawingViewStyleEnum.kHiddenLineDrawingViewStyle, "", null, null);

            //Create Projected views
            DrawingView oRightView = oSheet.DrawingViews.AddProjectedView(oBaseView,
                                                                          oTG.CreatePoint2d(20, 18),
                                                                          DrawingViewStyleEnum.kFromBaseDrawingViewStyle, null);

            DrawingView oIsoView = oSheet.DrawingViews.AddProjectedView(oBaseView,
                                                                        oTG.CreatePoint2d(10, 20),
                                                                        DrawingViewStyleEnum.kFromBaseDrawingViewStyle, null);


            //Find an edge in the part to dimension.  Any method can be used, (attributes, B-Rep query, selection, etc.).  This
            //looks through the curves in the drawing view and finds the top horizontal curve.

            DrawingCurve oSelectedCurve = null;

            foreach (DrawingCurve oCurve in oBaseView.get_DrawingCurves(null))
            {
                //Skip Circles
                if (oCurve.StartPoint != null && oCurve.EndPoint != null)
                {
                    if (WithinTol(oCurve.StartPoint.X, oCurve.EndPoint.X, 0.001))
                    {
                        if (oSelectedCurve == null)
                        {
                            //This is the first horizontal curve found.
                            oSelectedCurve = oCurve;
                        }
                        else
                        {
                            //Check to see if this curve is higher (smaller x value) than the current selected
                            if (oCurve.MidPoint.X < oSelectedCurve.MidPoint.X)
                            {
                                oSelectedCurve = oCurve;
                            }
                        }
                    }
                }
            }

            //Create geometry intents point for the curve.
            GeometryIntent oGeomIntent1 = oSheet.CreateGeometryIntent(oSelectedCurve, PointIntentEnum.kStartPointIntent);
            GeometryIntent oGeomIntent2 = oSheet.CreateGeometryIntent(oSelectedCurve, PointIntentEnum.kEndPointIntent);

            GeneralDimensions oGeneralDimensions = oSheet.DrawingDimensions.GeneralDimensions;

            Point2d oDimPos = oTG.CreatePoint2d(oSelectedCurve.MidPoint.X - 2, oSelectedCurve.MidPoint.Y);

            DimensionStyle dimstyle = oDoc.StylesManager.DimensionStyles["Default (ISO)"];

            Layer layer = oDoc.StylesManager.Layers["Dimension (ISO)"];

            //Create the dimension.
            LinearGeneralDimension oLinearDim;

            oLinearDim = oGeneralDimensions.AddLinear(oDimPos, oGeomIntent1, oGeomIntent2,
                                                      DimensionTypeEnum.kAlignedDimensionType, true,
                                                      dimstyle,
                                                      layer);
        }
Ejemplo n.º 21
0
        private Lines TitleBlock()
        {
            var titleBlock = new TitleBlock(style);

            return(titleBlock.Lines);
        }
        public ExtendedXlsFile TestExecuteBalansHierLev0_Valtage_220_330_Interval(BalansHierLev0Result HierLev0,
                                                                                  TExportExcelAdapterType ExportType, IVisualDataRequestObjectsNames getNameInterface)
        {
            Dictionary <ID_TypeHierarchy, string> dictionaryOfNames = HierLev0.DictionaryOfNames;
            InternalData internalData = new InternalData(ExportType, HierLev0.NumbersValues);
            InitBlock    initBlock    = new InitBlock(internalData);

            Classes.TitleInfo titleData =
                new Classes.TitleInfo(getNameInterface.GetBalanceNameForHierLev0(HierLev0.BalanceId), HierLev0.DTStart, HierLev0.DTEnd);
            TitleBlock titleBlock = new TitleBlock(titleData);

            initBlock.AddBlock(titleBlock);

            List <DateTime> dateTimeListForPeriod = getNameInterface.GetDateTimeListForPeriod(HierLev0.DTStart, HierLev0.DTEnd,
                                                                                              HierLev0.DiscreteType, HierLev0.IsSummerOrWinter);
            List <DateTimePeriod> dateTimePeriods = new List <DateTimePeriod>();

            for (int i = 0; i < dateTimeListForPeriod.Count; i += 1)
            {
                var dateList = dateTimeListForPeriod.GetRange(i, Math.Min(2, dateTimeListForPeriod.Count - i));
                if (dateList.Count > 1)
                {
                    dateTimePeriods.Add(new DateTimePeriod(dateList[0], dateList[1]));
                }
            }
            dateTimePeriods.Add(new DateTimePeriod(dateTimeListForPeriod.Max(), HierLev0.DTEnd.AddMinutes(30)));

            HeaderFooterBlock headerFooter = new HeaderFooterBlock(new Data.HeaderFooterData(HierLev0.VoltageClass, dateTimePeriods));

            initBlock.AddBlock(headerFooter);

            foreach (TIntegral_HierLev0_Values balanceSection in HierLev0.Result_Values)
            {
                BalansHierLev0.Data.Full.BalancePartData balData = new BalansHierLev0.Data.Full.BalancePartData(getNameInterface.GetBalanceSectionName(balanceSection.HierLev0Group_Name),
                                                                                                                HierLev0.BalPartList.Where(x => x.IsUseInGeneralBalance).Select(x => x.Name).Contains(balanceSection.HierLev0Group_Name),
                                                                                                                HierLev0.BalPartList.Where(x => x.IsRsk).Select(x => x.Name).Contains(balanceSection.HierLev0Group_Name));

                BalancePartBlock balPartBlock = new BalancePartBlock(balData);
                foreach (KeyValuePair <ID_IsOurSide, TIntegral_PS_ValuesForHierLev0> psBalSect in balanceSection.HierLev0DetailGroupResult)
                {
                    string psName;
                    TIntegral_PS_ValuesForHierLev0 psBalSectData = psBalSect.Value;
                    ID_IsOurSide     side = psBalSect.Key;
                    ID_TypeHierarchy key  = new ID_TypeHierarchy(enumTypeHierarchy.Dict_PS, -1);
                    key.TypeHierarchy = side.IsOurSide ? enumTypeHierarchy.Dict_PS : enumTypeHierarchy.Dict_Contr_PS;
                    key.ID            = side.ID;

                    if (!dictionaryOfNames.TryGetValue(key, out psName))
                    {
                        psName = getNameInterface.GetPSName(side.ID, !side.IsOurSide);
                    }
                    PsBlock psBlock = new PsBlock(psName);
                    foreach (TI_Integral_ValuesForHierLev0 tiPsBalSect in psBalSectData.TI_List)
                    {
                        string tIName = string.Empty;
                        key.TypeHierarchy = tiPsBalSect.TypeHierarchy;
                        key.ID            = tiPsBalSect.ID;
                        if (!dictionaryOfNames.TryGetValue(key, out tIName))
                        {
                            switch (tiPsBalSect.TypeHierarchy)
                            {
                            case enumTypeHierarchy.Dict_PS:
                                tIName = getNameInterface.GetPSName(tiPsBalSect.ID, !side.IsOurSide);
                                break;

                            case enumTypeHierarchy.Info_TI:
                                tIName = getNameInterface.GetTIName(tiPsBalSect.ID, false);
                                break;

                            case enumTypeHierarchy.Info_ContrTI:
                                tIName = getNameInterface.GetTIName(tiPsBalSect.ID, true);
                                break;

                            case enumTypeHierarchy.Info_TP:
                                tIName = getNameInterface.GetTPName(tiPsBalSect.ID);
                                break;
                            }
                        }

                        List <TVALUES_DB> inputValues;
                        List <TVALUES_DB> outputValues;
                        Data.TiData       tiData = new Data.TiData(tIName);
                        if (tiPsBalSect.Val_List.TryGetValue(1, out inputValues))
                        {
                            tiData.InputInterval = inputValues.Select(x => new TVALUES_DB(x.F_FLAG, x.F_VALUE / 1000)).ToList();
                        }
                        if (tiPsBalSect.Val_List.TryGetValue(2, out outputValues))
                        {
                            tiData.OutputInterval = outputValues.Select(x => new TVALUES_DB(x.F_FLAG, x.F_VALUE / 1000)).ToList();
                        }

                        TiBlock tiBlock = new TiBlock(tiData);
                        psBlock.AddBlock(tiBlock);
                    }
                    balPartBlock.AddBlock(psBlock);
                }
                headerFooter.AddBlock(balPartBlock);
            }

            ExtendedXlsFile xls = new ExtendedXlsFile(ExportType);

            initBlock.Render(xls);

            return(xls);
        }
Ejemplo n.º 23
0
 public InventorTitleBlock(TitleBlock title)
 {
     _title = title;
 }