예제 #1
0
 protected void Browse(ClientPipelineArgs args)
 {
     if (args.IsPostBack && args.HasResult)
     {
         if (WordpressXmlFile != null)
         {
             WordpressXmlFile.Value    = args.Result;
             ImportOptionsPane.Visible = true;
             return;
         }
     }
     else
     {
         BrowseDialog.BrowseForOpen(ApplicationContext.PackagePath, "*.xml", "Open XML file", "Select the file that you want to open.", "People/16x16/box.png");
         args.WaitForPostBack();
     }
 }
예제 #2
0
 public static void Browse(ClientPipelineArgs args, Edit fileEdit)
 {
     try
     {
         CheckPackageFolder();
         if (args.IsPostBack)
         {
             if (args.HasResult && fileEdit != null)
             {
                 fileEdit.Value = args.Result;
             }
         }
         else
         {
             BrowseDialog.BrowseForOpen(ApplicationContext.PackagePath, "*.zip", "Choose Package", "Click the package that you want to install and then click Open.", "People/16x16/box.png");
             args.WaitForPostBack();
         }
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message, typeof(DialogUtils));
         SheerResponse.Alert(ex.Message);
     }
 }