Пример #1
0
        string FormatKeyName(MoveMappingData data)
        {
            string s = "";

            if (data.ModifierKeys != 0)
            {
                s = data.ModifierKeys.ToString().Replace(" ", "").Replace(",", " + ") + " + ";
            }
            if (data.Key != 0)
            {
                string n = data.Key.ToString().Replace(" ", "").Replace(",", " + ");
                if (n.Length == 2 && n[0] == 'D')
                {
                    n = n.Substring(1);
                }
                s += n;
            }
            if (s == "")
            {
                s = "(None)";
            }
            return(s);
        }
Пример #2
0
 public MoveMappingControls(CheckBox keyBox, TextBox pathBox, Button browseButton, MoveMappingData defaults, int index)
     : base(keyBox, defaults, index)
 {
     BrowseButton = browseButton;
     PathBox      = pathBox;
 }
Пример #3
0
 public MappingControls(CheckBox keyBox, MoveMappingData defaults, int index)
 {
     Index    = index;
     Defaults = defaults;
     KeyBox   = keyBox;
 }