public Message() { _mode = ConstructorMode.Default; _settings = Settings.Default(); Wiring.Current = Wiring.Default(); _machine = new Machine(_settings); MessageKey = "AAAAA"; }
/// <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; }
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; }
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; }
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); }
public ULongIntB(LongIntBinary From, ConstructorMode mode) : base(From, mode) { }
public ULongIntB(LongIntBase FromLongNumber, ConstructorMode mode) : base(FromLongNumber, mode) { }
public SLongIntD(LongIntDecimal From, LSign lSign, ConstructorMode mode) : base(From, mode) { sign = lSign; }
public SLongIntD(LongIntDecimal From, ConstructorMode mode) : this(From, LSign.Positive, mode) { }
public SLongIntD(LongIntBase FromLongNumber, LSign lSign, ConstructorMode mode) : this(FromLongNumber, mode) { sign = lSign; }
public ULongIntD(LongIntDecimal From, ConstructorMode mode) : base(From, mode) { }