Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HotkeyEventArgs"/> class.
 /// </summary>
 /// <param name="source">
 /// The source application from where
 /// the Hotkey was triggered.
 /// </param>
 public HotkeyEventArgs(SourceApplication source)
 {
     SourceApplication = new SourceApplication(
         source.ID,
         source.Handle,
         source.Name,
         source.Title,
         source.Path,
         source.Selection
         );
 }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            System.Globalization.CultureInfo culture = System.Globalization.CultureInfo.CurrentCulture;
            string separator = IsSubcomponent ? Configuration.SubcomponentSeparator : Configuration.ComponentSeparator;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 5, separator),
                       SourceApplication?.ToDelimitedString(),
                       TypeOfData,
                       DataSubtype,
                       Encoding,
                       Data?.ToDelimitedString()
                       ).TrimEnd(separator.ToCharArray()));
        }