Ejemplo n.º 1
0
 public void Update(int ID, string Name, string Command, bool Active, TMTime Time, bool Monday, bool Tuesday, bool Wednesday, bool Thursday, bool Friday, bool Saturday, bool Sunday)
 {
     Map[ID].Name      = Name;
     Map[ID].Command   = Command;
     Map[ID].Active    = Active;
     Map[ID].Time      = Time;
     Map[ID].Monday    = Monday;
     Map[ID].Tuesday   = Tuesday;
     Map[ID].Wednesday = Wednesday;
     Map[ID].Thursday  = Thursday;
     Map[ID].Friday    = Friday;
     Map[ID].Saturday  = Saturday;
     Map[ID].Sunday    = Sunday;
     Save();
 }
Ejemplo n.º 2
0
        public int Insert(string Name, string Command, bool Active, TMTime Time, bool Monday, bool Tuesday, bool Wednesday, bool Thursday, bool Friday, bool Saturday, bool Sunday)
        {
            TMCommandItem Item = new TMCommandItem();

            Item.ID        = ++LastID;
            Item.Name      = Name;
            Item.Command   = Command;
            Item.Active    = Active;
            Item.Time      = Time;
            Item.Monday    = Monday;
            Item.Tuesday   = Tuesday;
            Item.Wednesday = Wednesday;
            Item.Thursday  = Thursday;
            Item.Friday    = Friday;
            Item.Saturday  = Saturday;
            Item.Sunday    = Sunday;
            Map.Add(LastID, Item);
            Save();
            return(LastID);
        }