public static void Upload(ClientPipelineArgs args, Edit fileEdit) { try { CheckPackageFolder(); if (!args.IsPostBack) { UploadPackageForm.Show(ApplicationContext.PackagePath, true); args.WaitForPostBack(); } else { if (args.Result.StartsWith("ok:", StringComparison.InvariantCulture)) { string[] strArray = args.Result.Substring("ok:".Length).Split('|'); if (strArray.Length >= 1 && fileEdit != null) { fileEdit.Value = strArray[0]; } } } } catch (Exception ex) { Log.Error(ex.Message, typeof(DialogUtils)); SheerResponse.Alert(ex.Message); } }
protected void Upload(ClientPipelineArgs args) { if (!args.IsPostBack) { UploadPackageForm.Show(ApplicationContext.PackagePath, true); args.WaitForPostBack(); return; } if (args.Result.StartsWith("ok:")) { string str = args.Result.Substring("ok:".Length); WordpressXmlFile.Value = str; } }