コード例 #1
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetTitle
 ///
 /// <summary>
 /// Gets the title displayed in the main window.
 /// </summary>
 ///
 /// <param name="src">Source object.</param>
 ///
 /// <returns>Title displayed in the main window.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetTitle(this ExtractFacade src) => src.GetTitle(src.Source);
コード例 #2
0
 /* ----------------------------------------------------------------- */
 ///
 /// GetText
 ///
 /// <summary>
 /// Gets the text displayed in the main window.
 /// </summary>
 ///
 /// <param name="src">Facade to extract an archive.</param>
 ///
 /// <returns>Text that represents the current status.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string GetText(this ExtractFacade src) =>
 src.Report.Current != null ?
 src.Report.Current.FullName :
 Properties.Resources.MessagePreExtract;
コード例 #3
0
 /* ----------------------------------------------------------------- */
 ///
 /// Select
 ///
 /// <summary>
 /// Gets the directory to save the extracted files or directories.
 /// The method may query the user as needed.
 /// </summary>
 ///
 /// <param name="src">Source object.</param>
 ///
 /// <returns>Path to save.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static string Select(this ExtractFacade src) => new SaveQueryProxy(
     src.Select,
     src.Source,
     src.Request,
     src.Settings.Value.Extract
     ).Value;