public void LogTemperatureStatus(ChangeTemperatureStatus.Status Status)               // A method that logs the current Temperature Status to DB.
        {
            TemperatureStatusEvent newEvent = new TemperatureStatusEvent()                    // Defines a new event.
            {
                TimeStamp         = DateTime.Now,                                             // TimeStamp is set to current time.
                TemperatureStatus = Status.ToString(),                                        // Temperature status is set to the status enum converted to string.
                Description       = Description(Status)                                       // Description will be applied from the function Description.
            };

            SubmitToDB(newEvent);                                                             // Sends the newEvent to the DB through SubmitToDB method.
        }
 partial void DeleteTemperatureStatusEvent(TemperatureStatusEvent instance);
 partial void UpdateTemperatureStatusEvent(TemperatureStatusEvent instance);
 partial void InsertTemperatureStatusEvent(TemperatureStatusEvent instance);
 private void SubmitToDB(TemperatureStatusEvent E)                 // Method to send a temperature event to the database.
 {
     Program.myDB.TemperatureStatusEvents.InsertOnSubmit(E);       // Insert event.
     Program.myDB.SubmitChanges();                                 // Submit.
 }