//Save option for User Packages tab
        private void SaveUserPackageList() // this is not saved with config xml file but else where. So saving is different for this tab.
        {
            userPackageList.RemoveAllItems();
            string[] itemsarr = new string[packagelistbox.Items.Count];
            int      i        = 0;

            foreach (object item in packagelistbox.Items)
            {
                itemsarr[i] = (item.ToString());
                i++;
            }
            userPackageList.AddXMLItems(itemsarr);
            //ApplyPackageButton.IsEnabled = false;
        }