Beispiel #1
0
        public override void InitProperty()
        {
            base.InitProperty();

            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "false",
                Description = MultilingualUtility.GetString("LoginTitle"),
                Name = "IsAuth",
                Value = AuthStyle.None.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            var events = new ToolBoxEvent()
            {
                Category = MultilingualUtility.GetString("Event"),
                Description = MultilingualUtility.GetString("Click"),
                Name = "Click",
                Value = String.Empty,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Events.Add(events);
        }
Beispiel #2
0
        public override void InitProperty()
        {
            base.InitProperty();

            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Data"),
                DefaultValue = String.Empty,
                Description = MultilingualUtility.GetString("DataSource"),
                Name = "DataSource",
                Value = String.Empty,
                ValueType = PropertyValueType.xml,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Data"),
                DefaultValue = DataTypeEnum.Host.ToString(),
                Description = MultilingualUtility.GetString("DataType"),
                Name = "DataType",
                Value = DataTypeEnum.Host.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);
        }
Beispiel #3
0
        public override void InitProperty()
        {
            base.InitProperty();

            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "0,0",
                Description = MultilingualUtility.GetString("Start"),
                Name = "Start",
                Value = "0,0",
                ValueType = PropertyValueType.point,
                Visible = true,
                ReadOnly = true,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "10,10",
                Description = MultilingualUtility.GetString("End"),
                Name = "End",
                Value = "10,10",
                ValueType = PropertyValueType.point,
                Visible = true,
                ReadOnly = true,
                ComponentType = ComponentType
            };
            Properties.Add(property);
        }
        public override void InitProperty()
        {
            base.InitProperty();

            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Data"),
                DefaultValue = String.Empty,
                Description = MultilingualUtility.GetString("Signal"),
                Name = "Signal",
                Value = String.Empty,
                ValueType = PropertyValueType.str,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Data"),
                DefaultValue = String.Empty,
                Description = MultilingualUtility.GetString("Name"),
                Name = "SignalName",
                Value = String.Empty,
                ValueType = PropertyValueType.str,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);
        }
        public override void InitProperty()
        {
            base.InitProperty();

            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "false",
                Description = MultilingualUtility.GetString("IsRound"),
                Name = "IsRound",
                Value = "false",
                ValueType = PropertyValueType.boolean,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "0",
                Description = MultilingualUtility.GetString("Round"),
                Name = "Round",
                Value = "0",
                ValueType = PropertyValueType.number,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);
        }
Beispiel #6
0
        public override void InitProperty()
        {
            base.InitProperty();

            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = String.Empty,
                Description = MultilingualUtility.GetString("Paths"),
                Name = "Paths",
                Value = String.Empty,
                ValueType = PropertyValueType.array,
                Visible = true,
                ReadOnly = true,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            UpadteProperty();
        }
Beispiel #7
0
        public override void InitProperty()
        {
            foreach (var flashProperty in FlashPropertys)
            {
                var valueType = PropertyValueType.str;
                Enum.TryParse<PropertyValueType>(flashProperty.Value.Type, out valueType);
                var property = new ToolBoxProperty()
                {
                    Category = MultilingualUtility.GetString("Data"),
                    DefaultValue = flashProperty.Value.DefaultValue,
                    Description = flashProperty.Value.Description,
                    Name = flashProperty.Value.Name,
                    Value = flashProperty.Value.Value,
                    ValueType = valueType,
                    Visible = true,
                    ReadOnly = false,
                    ComponentType = ComponentType
                };
                Properties.Add(property);
            }

            foreach (var flashEvent in FlashEvents)
            {
                var events = new ToolBoxEvent()
                {
                    Category = MultilingualUtility.GetString("Event"),
                    Description = flashEvent.Value.Description,
                    Name = flashEvent.Value.Name,
                    Value = flashEvent.Value.Value,
                    Visible = true,
                    ReadOnly = false,
                    ComponentType = ComponentType
                };
                Events.Add(events);
            }
        }
        public override void InitProperty()
        {
            base.InitProperty();

            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Text"),
                DefaultValue = String.Empty,
                Description = MultilingualUtility.GetString("Text"),
                Name = "Text",
                Value = String.Empty,
                ValueType = PropertyValueType.str,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Text"),
                DefaultValue = PropertyUtility.ParseToColor(PropertyUtility.Black),
                Description = MultilingualUtility.GetString("TextColor"),
                Name = "TextColor",
                Value = PropertyUtility.ParseToColor(PropertyUtility.Black),
                ValueType = PropertyValueType.color,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Text"),
                DefaultValue = TextAlignStyle.center.ToString(),
                Description = MultilingualUtility.GetString("TextAlign"),
                Name = "TextAlign",
                Value = TextAlignStyle.center.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Text"),
                DefaultValue = TextDecorationStyle.none.ToString(),
                Description = MultilingualUtility.GetString("TextDecoration"),
                Name = "TextDecoration",
                Value = TextDecorationStyle.none.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Text"),
                DefaultValue = VerticalAlignStyle.middle.ToString(),
                Description = MultilingualUtility.GetString("VerticalAlign"),
                Name = "VerticalAlign",
                Value = VerticalAlignStyle.middle.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Text"),
                DefaultValue = "12",
                Description = MultilingualUtility.GetString("FontSize"),
                Name = "FontSize",
                Value = "12",
                ValueType = PropertyValueType.number,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Text"),
                DefaultValue = FontStyle.normal.ToString(),
                Description = MultilingualUtility.GetString("FontStyle"),
                Name = "FontStyle",
                Value = FontStyle.normal.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Text"),
                DefaultValue = FontWeightStyle.normal.ToString(),
                Description = MultilingualUtility.GetString("FontWeight"),
                Name = "FontWeight",
                Value = FontWeightStyle.normal.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Text"),
                DefaultValue = String.Empty,
                Description = MultilingualUtility.GetString("Tooltip"),
                Name = "Tooltip",
                Value = String.Empty,
                ValueType = PropertyValueType.str,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);
        }
Beispiel #9
0
        public override void InitProperty()
        {
            base.InitProperty();

            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "false",
                Description = MultilingualUtility.GetString("LoginTitle"),
                Name = "IsAuth",
                Value = AuthStyle.None.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Data"),
                DefaultValue = "{users.Nodes(<InputUserName1>.LoginName)}",
                Description = MultilingualUtility.GetString("DataSource"),
                Name = "DataSource",
                Value = "{users.Nodes(<InputUserName1>.LoginName)}",
                ValueType = PropertyValueType.xml,
                Visible = false,
                ReadOnly = true,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Data"),
                DefaultValue = "true",
                Description = MultilingualUtility.GetString("IsExpand"),
                Name = "IsExpand",
                Value = "true",
                ValueType = PropertyValueType.boolean,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            var events = new ToolBoxEvent()
            {
                Category = MultilingualUtility.GetString("Event"),
                Description = MultilingualUtility.GetString("ClickRoot"),
                Name = "ClickRoot",
                Value = String.Empty,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Events.Add(events);

            events = new ToolBoxEvent()
            {
                Category = MultilingualUtility.GetString("Event"),
                Description = MultilingualUtility.GetString("ClickHost"),
                Name = "ClickHost",
                Value = String.Empty,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Events.Add(events);

            events = new ToolBoxEvent()
            {
                Category = MultilingualUtility.GetString("Event"),
                Description = MultilingualUtility.GetString("ClickRegion"),
                Name = "ClickRegion",
                Value = String.Empty,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Events.Add(events);

            events = new ToolBoxEvent()
            {
                Category = MultilingualUtility.GetString("Event"),
                Description = MultilingualUtility.GetString("ClickSite"),
                Name = "ClickSite",
                Value = String.Empty,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Events.Add(events);

            events = new ToolBoxEvent()
            {
                Category = MultilingualUtility.GetString("Event"),
                Description = MultilingualUtility.GetString("ClickEquipment"),
                Name = "ClickEquipment",
                Value = String.Empty,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Events.Add(events);
        }
        public override void InitProperty()
        {
            base.InitProperty();

            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = PropertyUtility.ParseToColor(PropertyUtility.Transparent),
                Description = MultilingualUtility.GetString("BackgroudColor"),
                Name = "BackgroudColor",
                Value = PropertyUtility.ParseToColor(PropertyUtility.Transparent),
                ValueType = PropertyValueType.color,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "0",
                Description = MultilingualUtility.GetString("BackgroudAlpha"),
                Name = "BackgroudAlpha",
                Value = "0",
                ValueType = PropertyValueType.number,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = BooleanStyle.True.ToString(),
                Description = MultilingualUtility.GetString("BorderVisible"),
                Name = "BorderVisible",
                Value = BooleanStyle.True.ToString(),
                ValueType = PropertyValueType.boolean,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = ControlBorderStyle.inset.ToString(),
                Description = MultilingualUtility.GetString("BorderStyle"),
                Name = "BorderStyle",
                Value = ControlBorderStyle.inset.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "1",
                Description = MultilingualUtility.GetString("BorderAlpha"),
                Name = "BorderAlpha",
                Value = "1",
                ValueType = PropertyValueType.number,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "3",
                Description = MultilingualUtility.GetString("BorderThickness"),
                Name = "BorderThickness",
                Value = "3",
                ValueType = PropertyValueType.number,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = PropertyUtility.ParseToColor(PropertyUtility.Black),
                Description = MultilingualUtility.GetString("BorderColor"),
                Name = "BorderColor",
                Value = PropertyUtility.ParseToColor(PropertyUtility.Black),
                ValueType = PropertyValueType.color,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);
        }
        public virtual void InitProperty()
        {
            var property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = String.Empty,
                Description = MultilingualUtility.GetString("Id"),
                Name = "Id",
                Value = ConfigToolContext.Instance.ToolDrawArea.GraphicsCollection.CreateNewName(BoxType),
                ValueType = PropertyValueType.str,
                Visible = true,
                ReadOnly = true,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "0,0",
                Description = MultilingualUtility.GetString("Location"),
                Name = "Location",
                Value = "0,0",
                ValueType = PropertyValueType.point,
                Visible = true,
                ReadOnly = true,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "1,1",
                Description = MultilingualUtility.GetString("Size"),
                Name = "Size",
                Value = "1,1",
                ValueType = PropertyValueType.point,
                Visible = true,
                ReadOnly = true,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "0",
                Description = MultilingualUtility.GetString("ZIndex"),
                Name = "ZIndex",
                Value = (ConfigToolContext.Instance.ToolDrawArea.GraphicsCollection.Count + 1).ToString(),
                ValueType = PropertyValueType.number,
                Visible = true,
                ReadOnly = true,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = BooleanStyle.True.ToString(),
                Description = MultilingualUtility.GetString("Visible"),
                Name = "Visible",
                Value = BooleanStyle.True.ToString(),
                ValueType = PropertyValueType.boolean,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = "1",
                Description = MultilingualUtility.GetString("Alpha"),
                Name = "Alpha",
                Value = "1",
                ValueType = PropertyValueType.number,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);

            property = new ToolBoxProperty()
            {
                Category = MultilingualUtility.GetString("Layout"),
                DefaultValue = DockEnum.None.ToString(),
                Description = MultilingualUtility.GetString("Dock"),
                Name = "Dock",
                Value = DockEnum.None.ToString(),
                ValueType = PropertyValueType.enumtype,
                Visible = true,
                ReadOnly = false,
                ComponentType = ComponentType
            };
            Properties.Add(property);
        }