Example #1
0
        public static void LoadPrivateLabelFile()
        {
            try
            {
                string path = PrivateLabelService.GetPrivateLabelFilePath();

                if (System.IO.File.Exists(path))
                {
                    WOSI.Utilities.EncryptedResource er = new WOSI.Utilities.EncryptedResource();

                    er.LoadResourceFile(path);

                    try
                    {
                        productName = (string)er.GetResource <string>("Product Name");
                    }
                    catch
                    {
                    }

                    er.CloseResources();
                }
            }
            catch
            {
            }
        }
        public static void LoadPrivateLabelFile()
        {
            try
            {
                string path = PrivateLabelService.GetPrivateLabelFilePath();

                if (System.IO.File.Exists(path))
                {
                    WOSI.Utilities.EncryptedResource er = new WOSI.Utilities.EncryptedResource();

                    er.LoadResourceFile(path);

                    try
                    {
                        productName = (string)er.GetResource<string>("Product Name");
                    }
                    catch
                    {
                    }

                    er.CloseResources();
                }
            }
            catch
            {
            }
        }