Example #1
0
        public Message()
        {
            _mode          = ConstructorMode.Default;
            _settings      = Settings.Default();
            Wiring.Current = Wiring.Default();
            _machine       = new Machine(_settings);

            MessageKey = "AAAAA";
        }
Example #2
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="From">Number to copy from</param>
 /// <param name="mode">Mode of copying (Full and References copying)</param>
 public LongIntBase(LongIntBase From, ConstructorMode mode)
 {
     numberBase = From.numberBase;
     size = From.size;
     if (mode == ConstructorMode.Copy)
         coef = (ushort[])From.coef.Clone();
     else
         if (mode == ConstructorMode.Assign)
             coef = From.coef;
 }
Example #3
0
        public Message(string fileName)
        {
            _mode = ConstructorMode.FileName;

            YearlySettings ys = YearlySettings.Open(fileName);

            _settings      = ys.Today;
            Wiring.Current = _settings.ParentSettings.Wiring;

            _machine = new Machine(_settings);

            MessageKey = RandomUtil.GetRandomAlpha(5);

            _fileName = fileName;
        }
Example #4
0
        public Message(int id)
        {
            _mode = ConstructorMode.Id;

            YearlySettings ys = YearlySettings.ReadFromDb(id);

            _settings      = ys.Today;
            Wiring.Current = _settings.ParentSettings.Wiring;

            _machine = new Machine(_settings);

            MessageKey = RandomUtil.GetRandomAlpha(5);

            _id = id;
        }
Example #5
0
        public Message(Settings s)
        {
            _mode = ConstructorMode.Settings;

            _settings = s;
            _machine  = new Machine(_settings);

            Wiring.Current = Wiring.Default();

            if (_settings.ParentSettings != null)
            {
                if (_settings.ParentSettings.Wiring != null)
                {
                    Wiring.Current = _settings.ParentSettings.Wiring;
                }
            }

            MessageKey = RandomUtil.GetRandomAlpha(5);
        }
Example #6
0
 public ULongIntB(LongIntBinary From, ConstructorMode mode)
     : base(From, mode)
 {
 }
Example #7
0
 public ULongIntB(LongIntBase FromLongNumber, ConstructorMode mode)
     : base(FromLongNumber, mode)
 {
 }
Example #8
0
 public SLongIntD(LongIntDecimal From, LSign lSign, ConstructorMode mode)
     : base(From, mode)
 {
     sign = lSign;
 }
Example #9
0
 public SLongIntD(LongIntDecimal From, ConstructorMode mode)
     : this(From, LSign.Positive, mode)
 {
 }
Example #10
0
 public SLongIntD(LongIntBase FromLongNumber, LSign lSign, ConstructorMode mode)
     : this(FromLongNumber, mode)
 {
     sign = lSign;
 }
Example #11
0
 public ULongIntD(LongIntDecimal From, ConstructorMode mode)
     : base(From, mode)
 {
 }