Exemplo n.º 1
0
        public ProjectContext()
        {
            DisplaySelected   = false;
            DisplayUnselected = false;

            NumericalBaseService = new NumericalBaseService();
            FlagsNumber          = new FlagsNumber();
        }
Exemplo n.º 2
0
        public void Unload()
        {
            FlagsNumber = new FlagsNumber();
            NumericalBaseService.NumericalBase = NumericalBase.Decimal;
            DisplaySelected   = false;
            DisplayUnselected = false;

            IsLoaded = false;
            OnUnloaded();
        }
Exemplo n.º 3
0
        public bool LoadFlagCollection(Type enumType)
        {
            if (enumType == null)
            {
                return(false);
            }

            FlagsNumber = new FlagsNumber(enumType);

            IsLoaded = true;
            OnLoaded();

            return(true);
        }
Exemplo n.º 4
0
        public FlagItem(FlagsNumber parent, string name, ulong value)
        {
            if (parent == null)
            {
                throw new ArgumentNullException(nameof(parent));
            }
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            Parent = parent;
            Name   = name;
            Value  = value;
        }
Exemplo n.º 5
0
 public FlagsNumberChangedEventArgs(FlagsNumber oldValue, FlagsNumber newValue)
 {
     OldValue = oldValue;
     NewValue = newValue;
 }