Ejemplo n.º 1
0
 public ShortcutModel()
 {
     while (ShortcutKeys.Count() < 2)
     {
         ShortcutKeys.Add(new Keys());
     }
 }
Ejemplo n.º 2
0
        public override string ToString()
        {
            var output = string.Empty;
            var key1   = ShortcutKeys.Count() >= 1 ? ShortcutKeys[0].ToString() : "";
            var key2   = ShortcutKeys.Count() >= 2 ? ShortcutKeys[1].ToString() : "";

            output += !string.IsNullOrWhiteSpace(key1) ? key1 : "";
            output += !string.IsNullOrWhiteSpace(key2) ? (", " + key2) : "";
            return(output);
        }