/// <summary>
        /// Adds an appliance to the viewed packaged solution
        /// </summary>
        /// <param name="appliance"></param>
        private void AddApplianceToPackagedSolution(ApplianceInstance appliance)
        {
            AppliancesInPackagedSolution.Add(appliance);

            // Set save state to false
            IsDataSaved = false;

            // Notify the print function of changes
            PrintEnergyLabelCmd.NotifyCanExecuteChanged();
        }
        public void LoadExistingPackagedSolution(int packagedSolutionId)
        {
            using (var ctx = new AssistantContext())
            {
                var existingPackagedSolution = ctx.PackagedSolutions.Where(p => p.Id == packagedSolutionId)
                                               .Include(s => s.ApplianceInstances.Select(i => i.Appliance.DataSheet))
                                               .FirstOrDefault();

                if (existingPackagedSolution == null)
                {
                    return;
                }

                // Copy appliances
                foreach (var appliance in existingPackagedSolution.ApplianceInstances)
                {
                    AppliancesInPackagedSolution.Add(appliance.MakeCopy());
                }
            }
        }