Exemplo n.º 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);
Exemplo n.º 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;
Exemplo n.º 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;