private void AddNewAnalyticsDataToDeviceMemory(Control changedControl) { if (changedControl.ShouldKeepAnalytics()) { Console.WriteLine("Hello"); List <byte> analyticsBuffer = HeepDeviceAnalytics.GetDeviceAnalyticsByteArray(changedControl, myID); HeepLanguage.AddBufferToBuffer(deviceMemory, analyticsBuffer); NonVolatileData.WriteMemoryToFile(deviceMemory); HeepCommunications.SendAnalytics(myID, deviceMemory); } }
public void AddVertex(Vertex newVertex) { vertices.Add(newVertex); HeepLanguage.AddVertexToMemory(deviceMemory, newVertex); NonVolatileData.WriteMemoryToFile(deviceMemory); }
public void SetDeviceName(String name) { HeepLanguage.AddNameToMemory(deviceMemory, myID, name); NonVolatileData.WriteMemoryToFile(deviceMemory); }