SaveCycle() публичный статический Метод

public static SaveCycle ( Cycle cycle ) : int
cycle Cycle
Результат int
Пример #1
0
        public static void StartCycle(int thermostatId, string cycleType, Int16 precision)
        {
            Cycle c = new Cycle();

            c.CycleType      = cycleType;
            c.StartDate      = DateTime.Now;
            c.IsEndDateNull  = true;
            c.ThermostatId   = thermostatId;
            c.StartPrecision = precision;
            Cycle.SaveCycle(c);
        }
Пример #2
0
        public static void LogCycle(int thermostatId, string cycleType, DateTime startDate, DateTime endDate, Int16 startPrecision, Int16 endPrecision)
        {
            Cycle c = new Cycle();

            c.CycleType      = cycleType;
            c.EndDate        = endDate;
            c.StartDate      = startDate;
            c.ThermostatId   = thermostatId;
            c.StartPrecision = startPrecision;
            c.EndPrecision   = endPrecision;
            Cycle.SaveCycle(c);
        }
Пример #3
0
 public static void EndCycle(Cycle c, Int16 precision)
 {
     c.EndDate      = DateTime.Now;
     c.EndPrecision = precision;
     Cycle.SaveCycle(c);
 }