Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            HotStringOptionsEnum[] values = new HotStringOptionsEnum[] { HotStringOptionsEnum.AutomaticBackSpaceOff
                                                                         , HotStringOptionsEnum.CaseSensitive
                                                                         , HotStringOptionsEnum.SendEvent };
            HotstringSelectedOptions opt = HotstringSelectedOptions.FromArray(values);

            //opt.ExcludeRules.AddRange(new HotStringOptionsEnum[] { HotStringOptionsEnum.AutomaticBackSpaceOff, HotStringOptionsEnum.CaseSensitive});
            Console.WriteLine(opt.ToString());

            Console.WriteLine(opt.ToAutoHotkeyString());
            Console.ReadLine();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets <see cref="mapItem"/> the represents extended information about
        /// the <see cref="HotStringOptionsEnum"/> value.
        /// </summary>
        /// <param name="this"><see cref="EndCharsEnum"/></param>
        /// <returns>
        /// <see cref="mapItem"/> instance for the Enum;
        /// </returns>
        /// <remarks>
        /// <seealso cref="HotstringSelectedOptions"/>;
        /// <seealso cref="mapItem"/>
        /// <seealso cref="HotStringOptionsEnum"/>
        /// </remarks>
        /// <example>
        /// mapItem item = HotStringOptionsEnum.AutomaticBackSpaceOff.GetMapItem();
        /// </example>
        public static mapItem GetMapItem(this HotStringOptionsEnum @this)
        {
            string EnumName = @this.ToString();

            return(HotstringOptionMap.Instance[EnumName]);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Gets a string that represents the value information of <see cref="mapItem"/> for
        /// the <see cref="HotStringOptionsEnum"/> value.
        /// </summary>
        /// <param name="this"><see cref="HotStringOptionsEnum"/></param>
        /// <returns>
        /// String of <see cref="mapItem"/> value
        /// </returns>
        /// <remarks>
        /// <seealso cref="HotstringSelectedOptions"/>
        /// <seealso cref="mapItem"/>
        /// <seealso cref="HotStringOptionsEnum"/>
        /// </remarks>
        /// <example>
        /// string strValue = HotStringOptionsEnum.AutomaticBackSpaceOff.GetMapValue();
        /// </example>
        public static string GetMapValue(this HotStringOptionsEnum @this)
        {
            string EnumName = @this.ToString();

            return(HotstringOptionMap.Instance[EnumName].value);
        }