Exemplo n.º 1
0
        private void bLoadFromSolution_Click(object sender, EventArgs e)
        {
            HideNotification();

            try
            {
                using (var zipHelper = new Helpers.ZipHelper())
                {
                    string fileContent = zipHelper.GetFileContent(tbSolutionFile.Text, Helpers.Statics.CustomizationsFileName);
                    string xml         = Helpers.CustomizationsFileProcessor.GetSiteMap(fileContent);

                    teReplacementSitemap.Text = xml;
                }
            }
            catch (Exception ex)
            {
                ShowErrorNotification(ex.Message, null);
                tbSolutionFile.BackColor = badColor;
            }
        }