Example #1
0
        /// <summary>
        /// Selecteds the index of the text row configuration at.
        /// </summary>
        /// <param name="index">The index.</param>
        /// <returns></returns>
        public UPMCoITextRowViewConfig SelectedTextRowConfigAtIndex(int index)
        {
            while (index >= this.selectedTextRowConfig.Count)
            {
                this.selectedTextRowConfig.Add(UPMCoITextRowViewConfig.SelectedRowViewConfig());
            }

            return(this.selectedTextRowConfig[index]);
        }
Example #2
0
        /// <summary>
        /// Texts the index of the row configuration at.
        /// </summary>
        /// <param name="index">The index.</param>
        /// <returns></returns>
        public UPMCoITextRowViewConfig TextRowConfigAtIndex(int index)
        {
            while (index >= this.textRowConfig.Count)
            {
                this.textRowConfig.Add(UPMCoITextRowViewConfig.RowViewConfig());
            }

            return(this.textRowConfig[index]);
        }
Example #3
0
        /// <summary>
        /// Sets the value for key.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <param name="key">The key.</param>
        public void SetValueForKey(object value, string key)
        {
            if (key.StartsWith("field") || key.StartsWith("selectedfield"))
            {
                bool   selected       = key.StartsWith("selectedfield");
                string numberAsString = key.Substring(selected ? 13 : 5);
                if (numberAsString != null && value is Dictionary <string, object> )
                {
                    UPMCoITextRowViewConfig rowConfig = selected
                        ? this.SelectedTextRowConfigAtIndex(Convert.ToInt32(numberAsString))
                        : this.TextRowConfigAtIndex(Convert.ToInt32(numberAsString));

                    rowConfig.ApplyJsonDictionary((Dictionary <string, object>)value);
                }
            }
        }
Example #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UPMCoINodeViewConfig"/> class.
        /// </summary>
        public UPMCoINodeViewConfig()
            : this(AureaColor.RedGreenBlueAlpha(1.0, 1.0, 1.0, 1.0), new Size(44, 44), AureaColor.RedGreenBlueAlpha(206.0 / 255.0, 82.0 / 255.0, 126.0 / 255.0, 1.0),
                   2.0f, 50.0f, true, true, true, new Size(75, 75), new Size(75, 75), int.MaxValue, new Size(150, 60), new Size(25, 40), default(Size),
                   default(Size), 0.0f, new Size(0, 1), 1.0f, AureaColor.RedGreenBlue(219.0f / 255.0f, 219.0f / 255.0f, 219.0f / 255.0f), false,
                   new Size(150, 100), 60.0f, 55, true, new UPMCoIEdgeViewConfig(), null, 5,
                   UPNodeViewAction.SelectNodeAndExpandCollapse, UPNodeViewAction.SelectNode, UPNodeViewAction.CustomViaDelegate,
                   AureaColor.RedGreenBlueAlpha(187.0f / 255.0f, 187.0f / 255.0f, 187.0f / 255.0f, 1.0), AureaColor.RedGreenBlueAlpha(1.0, 1.0, 1.0, 1.0),
                   1.5f, 5, 14, AureaColor.RedGreenBlue(1.0, 1.0, 1.0), null, AureaColor.RedGreenBlue(255.0 / 255.0f, 90.0 / 255.0f, 16.0 / 255.0f),
                   null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
                   null, null, null, null, null, null, null, null, null, null)
        {
            UPMCoITextRowViewConfig rowConfig0 = this.TextRowConfigAtIndex(0);

            rowConfig0.Color        = AureaColor.RedGreenBlue(51.0 / 255.0f, 51.0 / 255.0f, 51.0 / 255.0f);
            rowConfig0.Font         = UIFont.FontWithNameSize("HelveticaNeue-Medium", 10);
            rowConfig0.ShadowColor  = AureaColor.RedGreenBlue(1.0, 1.0, 1.0);
            rowConfig0.ShadowOffset = new Size(0, 1);
            rowConfig0.LineNumbers  = 1;
            UPMCoITextRowViewConfig rowConfigS0 = this.SelectedTextRowConfigAtIndex(0);

            rowConfigS0.Color        = AureaColor.RedGreenBlue(255.0 / 255.0f, 90.0 / 255.0f, 16.0 / 255.0f);
            rowConfigS0.Font         = UIFont.FontWithNameSize("HelveticaNeue-Medium", 10);
            rowConfigS0.ShadowColor  = AureaColor.RedGreenBlue(1.0, 1.0, 1.0);
            rowConfigS0.ShadowOffset = new Size(0, 1);
            rowConfigS0.LineNumbers  = 1;
            UPMCoITextRowViewConfig rowConfig1 = this.TextRowConfigAtIndex(1);

            rowConfig1.Color        = AureaColor.RedGreenBlue(102.0 / 255.0f, 102.0 / 255.0f, 102.0 / 255.0f);
            rowConfig1.Font         = UIFont.FontWithNameSize("HelveticaNeue", 10);
            rowConfig1.ShadowColor  = AureaColor.RedGreenBlue(1.0, 1.0, 1.0);
            rowConfig1.ShadowOffset = new Size(0, 1);
            rowConfig1.LineNumbers  = 1;
            UPMCoITextRowViewConfig rowConfigS1 = this.SelectedTextRowConfigAtIndex(1);

            rowConfigS1.Color        = AureaColor.RedGreenBlue(102.0 / 255.0f, 102.0 / 255.0f, 102.0 / 255.0f);
            rowConfigS1.Font         = UIFont.FontWithNameSize("HelveticaNeue", 10);
            rowConfigS1.ShadowColor  = AureaColor.RedGreenBlue(1.0, 1.0, 1.0);
            rowConfigS1.ShadowOffset = new Size(0, 1);
            rowConfigS1.LineNumbers  = 1;
        }