Exemplo n.º 1
0
        public override string ToString(bool withMarkup, bool originalValue)
        {
            Tags.Fields.Enum oldValue = (Tags.Fields.Enum)Tag;

            if (oldValue == null)
            {
                oldValue = value;
            }

            return(originalValue ? oldValue.ToString() : value.ToString());
        }
Exemplo n.º 2
0
        public override void DataBind(IField value)
        {
            base.DataBind(value);

            if ((value as Tags.Fields.Enum).Value <= cboxxEnumList.Items.Count)
            {
                this.value = value as Tags.Fields.Enum;
            }
            else
            {
                this.value = new Games.Halo.Tags.Fields.Enum(0);
                Interfaces.Output.Write(Interfaces.OutputTypes.Information, "During databinding, an enumeration's index exceeded the number of the number of enumerations available. The index was reset to 0.");
            }

            cboxxEnumList.DataBindings.Clear();
            cboxxEnumList.DataBindings.Add(new Binding("SelectedIndex", this.value, "Value"));
        }
Exemplo n.º 3
0
 protected override bool HandleError()
 {
     this.value = new Games.Halo.Tags.Fields.Enum(0);
     return(true);
 }