public KeymapOutputItem(KeymapOutput output)
        {
            InitializeComponent();
            this.output = output;
            this.tbName.Text = output.Name;

            this.border.Background = new SolidColorBrush(KeymapColors.GetColor(output.Type));
            //this.adorner.Visibility = Visibility.Hidden;
        }
        public KeymapOutputRow(KeymapOutput output)
        {
            InitializeComponent();

            KeymapOutputItem item = new KeymapOutputItem(output);
            item.OnDragStart += item_OnDragStart;
            item.OnDragStop += item_OnDragStop;

            this.mainGrid.Children.Add(item);
        }
示例#3
0
 public void addOutput(KeymapOutput output)
 {
     this.Stack.Add(output);
 }
示例#4
0
 public KeymapOutConfig(KeymapOutput output, bool inherited)
 {
     this.Stack = new List<KeymapOutput>();
     this.Stack.Add(output);
     this.Inherited = inherited;
 }