Ejemplo n.º 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
            {
            }
        }
Ejemplo n.º 2
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
            {
            }
        }