Beispiel #1
0
        public void Reset()
        {
            BeginDate = DateTime.Parse("20.12.2016");
            EndDate   = DateTime.Now;
            Plotnost.Clear();
            General.Clear();
            AllLayer.Clear();
            General.Clear();
            Layer1.Clear();
            Layer2.Clear();
            Layer3.Clear();

            InfoVision       = false;
            ButtonVisibility = false;
            RegulationAll    = false;
            RegulationCoun   = false;
            RegulationGen    = false;
            RegulationLayer1 = false;
            RegulationLayer2 = false;
            RegulationLayer3 = false;
            RegulationPlotn  = false;
            var tempTime = string.Format("{0} {1}:{2}:{3}", DateTime.Now.ToShortDateString(), DateTime.Now.Hour,
                                         DateTime.Now.Minute, DateTime.Now.Second);
            var startstop = new ReadStartStop("20.12.2016 18:00:00", tempTime);

            _startStops = startstop.GetMassurm3();
            Get();
        }
Beispiel #2
0
        static void DecodeLayer3()
        {
            var payload = GetPayload(Layer3Data);
            var decoded = Ascii85.Decode(payload);

            decoded = Layer3.DecryptXor(decoded);
            var output = Encoding.ASCII.GetString(decoded, 0, decoded.Length);

            File.WriteAllText($"{DataDirectory}{Layer4Data}", output);
        }
 public void ClearInterface()
 {
     ClearChildren();
     Layer1.ClearChildren();
     Layer2.ClearChildren();
     Layer3.ClearChildren();
     AddChild(Layer1);
     AddChild(Layer2);
     AddChild(Layer3);
 }
Beispiel #4
0
        /// <summary>
        /// Кнопка сброса графиков
        /// </summary>
        public void Vision()
        {
            Plotnost.Clear();
            General.Clear();
            AllLayer.Clear();
            General.Clear();
            Layer1.Clear();
            Layer2.Clear();
            Layer3.Clear();

            InfoVision       = false;
            ButtonVisibility = false;
            RegulationAll    = false;
            RegulationCoun   = false;
            RegulationGen    = false;
            RegulationLayer1 = false;
            RegulationLayer2 = false;
            RegulationLayer3 = false;
            RegulationPlotn  = false;
        }
Beispiel #5
0
            public T GetOrGen(ushort x, ushort y, ushort z)
            {
                var indx = (x & 768) >> 8 | (y & 768) >> 6 | (z & 768) >> 4;

                return((layers[indx] ?? (layers[indx] = new Layer3())).GetOrGen(x, y, z));
            }
Beispiel #6
0
            public void Gen(ushort x, ushort y, ushort z)
            {
                var indx = (x & 768) >> 8 | (y & 768) >> 6 | (z & 768) >> 4;

                (layers[indx] ?? (layers[indx] = new Layer3())).Gen(x, y, z);
            }