public void StartTask() { Task.Run(() => { CurrentPower = CalculatePower(ConnectHelper.ConnectWeatherForecast(), ConnectHelper.ConnectUniversalClock().GetTimeInHours()); DBManager.S_Instance.UpdateSolarPanel(this); }); }
public void StartTask() { Task.Run(() => { CurrentPower = CalculatePower(ConnectHelper.ConnectWeatherForecast(), ConnectHelper.ConnectUniversalClock().GetTimeInHours()); DBManager.S_Instance.UpdateSolarPanel(this); }); }