public BlueprintViz(EbxDataContainers ebxContainers, string assetGuid, Action <string> statusConsumer)
        {
            this.ebxDataContainers = ebxContainers;
            this.assetGuid         = assetGuid;
            this.statusConsumer    = statusConsumer;

            InitializeComponent();

            ebxTreeViewer = new EbxTreeXmlViewer(statusConsumer);
            toolsSplitContainer.Panel2.Controls.Add(ebxTreeViewer);
            ebxTreeViewer.Visible = true;
            ebxTreeViewer.setData(ebxContainers);
        }
Exemplo n.º 2
0
        public EBXExplorer(Action <string> statusConsumer)
        {
            this.statusConsumer = statusConsumer;

            InitializeComponent();

            rawXmlViewer  = new EbxRawXmlViewer();
            treeXmlViewer = new EbxTreeXmlViewer(statusConsumer);
            assetViewer   = new EbxAssetViewer(statusConsumer);
            textViewer    = new EbxTextViewer();
            viewerSelector.Items.Add(assetViewerStr);
            viewerSelector.Items.Add(rawXmlViewerStr);
            viewerSelector.Items.Add(treeXmlViewerStr);
            viewerSelector.Items.Add(textViewerStr);

            currentViewer = assetViewer;
            splitContainer1.Panel2.Controls.Add(currentViewer);
            treeXmlViewer.Visible = false;
            rawXmlViewer.Visible  = false;

            viewerSelector.SelectedIndex = 0;

            hideViewer();
        }