private void propertyGrid2_SelectedGridItemChanged(object sender, SelectedGridItemChangedEventArgs e)
        {
            string text = "";//treeView1.SelectedNode.Text;

            if (e.OldSelection != null)
            {
                GridItem selectedItem = propertyGrid2.SelectedGridItem;
                if (selectedItem != null && selectedItem.GridItemType == GridItemType.Property && selectedItem.Value != null)
                {
                    text = selectedItem.Value.ToString();
                }
            }

            richTextBox1.Text = text;

            /* if (text.IsXml())
             * {
             *   webBrowser1.DocumentStream = text.DocumentXml();
             * }
             * else
             * {
             *   webBrowser1.DocumentText = text;
             * }*/

            HighlightColors.HighlightRTF(richTextBox1);
        }
Exemplo n.º 2
0
        private void propertyGrid1_SelectedGridItemChanged(object sender, SelectedGridItemChangedEventArgs e)
        {
            string text = this.BtsOrchestration.FullName;

            if (e.OldSelection != null)
            {
                GridItem selectedItem = propertyGrid1.SelectedGridItem;
                if (selectedItem != null && selectedItem.GridItemType == GridItemType.Property && selectedItem.Value != null)
                {
                    text = selectedItem.Value.ToString();
                }
            }

            /* if (text.IsXml())
             * {
             *   XDocument xDoc = XDocument.Parse(text);
             *   text = xDoc.ToString();
             * }*/
            richTextBox1.Text = text;

            /* if (text.IsXml())
             * {
             *   webBrowser1.DocumentStream = text.DocumentXml();
             * }
             * else
             * {
             *   webBrowser1.DocumentText = text;
             * }*/

            HighlightColors.HighlightRTF(richTextBox1);
        }
Exemplo n.º 3
0
        private void propertyGridArtifacts_SelectedGridItemChanged(object sender, SelectedGridItemChangedEventArgs e)
        {
            string text = ""; //treeView1.SelectedNode.Text;

            if (e.OldSelection != null)
            {
                GridItem selectedItem = propertyGridArtifacts.SelectedGridItem;
                if (selectedItem != null && selectedItem.GridItemType == GridItemType.Property && selectedItem.Value != null)
                {
                    text = selectedItem.Value.ToString();
                }
            }

            richTextBoxArtifactProperties.Text = text;
            HighlightColors.HighlightRTF(richTextBoxArtifactProperties);
        }
Exemplo n.º 4
0
    void Awake()
    {
        suitcaseDisplay = GetComponent <SuitcaseDisplay>();
        image           = transform.Find("Closed")?.GetComponent <Image>();
        highlightColors = Resources.Load <HighlightColors>("SuitcaseData/Colors");
        if (image != null)
        {
            originalColor = image.color;
        }

        // external dependencies
        chosenSuitcase   = FindObjectOfType <ChosenSuitcaseDisplay>();
        banker           = FindObjectOfType <Banker>();
        bankerOfferPanel = GameObject.Find("BankerOfferPanel");
        instructionPanel = GameObject.Find("InstructionPanel");
        scoreboardPanel  = GameObject.Find("Scoreboard");
        gameState        = Resources.Load <GameState>("GameStateData");
        gameState.SetInitialState();
    }
Exemplo n.º 5
0
        public void HighlightNode(HighlightColors color)
        {
            // Create the variables
            Material material = materials.defaultMaterial;

            // Select which material to use
            switch (color)
            {
            case HighlightColors.White:
                material = materials.whiteMaterial;
                break;

            case HighlightColors.Green:
                material = materials.greenMaterial;
                break;

            case HighlightColors.Yellow:
                material = materials.yellowMaterial;
                break;

            case HighlightColors.Red:
                material = materials.redMaterial;
                break;

            case HighlightColors.LightBlue:
                material = materials.lightBlueMaterial;
                break;

            case HighlightColors.Blue:
                material = materials.blueMaterial;
                break;

            case HighlightColors.Highlighted:
                material = materials.highlightedMaterial;
                break;

            default:
                break;
            }

            // Apply the selected material
            meshRenderer.material = material;
        }
Exemplo n.º 6
0
 public void SetHighlighted(HighlightColors.HIGHLIGHT_COLOR color)
 {
     material_block_.SetHighlighted(HighlightColors.GetColorValue(color));
 }
 private void ApplicationAssemblies_Load(object sender, EventArgs e)
 {
     LoadApplications();
     formText = this.Text;
     HighlightColors.HighlightRTF(richTextBox1);
 }
Exemplo n.º 8
0
 public static Vec3f?GetColor(HighlightColors color)
 {
     return(Colors[(int)color]);
 }