Beispiel #1
0
 private void fillKeymapList(List <Keymap> allKeymaps)
 {
     this.spLayoutList.Children.Clear();
     foreach (Keymap keymap in allKeymaps)
     {
         bool      active   = this.currentKeymap.Filename == keymap.Filename;
         bool      defaultk = keymap.Filename == KeymapDatabase.Current.getKeymapSettings().getDefaultKeymap();
         KeymapRow row      = new KeymapRow(keymap, active, defaultk);
         row.OnClick += selectKeymap;
         this.spLayoutList.Children.Add(row);
     }
 }
 private void fillKeymapList(List<Keymap> allKeymaps)
 {
     this.spLayoutList.Children.Clear();
     foreach (Keymap keymap in allKeymaps)
     {
         bool active = this.currentKeymap.Filename == keymap.Filename;
         bool defaultk = keymap.Filename == KeymapDatabase.Current.getKeymapSettings().getDefaultKeymap();
         KeymapRow row = new KeymapRow(keymap,active,defaultk);
         row.OnClick += selectKeymap;
         this.spLayoutList.Children.Add(row);
     }
 }