public void AddCustomActionBinding(int index) { ControlItem item = new ControlItem((App.vimageConfig.CustomActionBindings[index] as dynamic).name, (App.vimageConfig.CustomActionBindings[index] as dynamic).bindings); ControlsPanel.Children.Add(item); CustomActionBindings.Add(item); }
private void AddControlItem(string name, List <int> control) { ControlItem item = new ControlItem(name, control); tabPage2.Controls.Add(item); ControlItems.Add(item); }
private ControlItem AddControlItem(string name, List <int> control) { ControlItem item = new ControlItem(name, control); panel_Controls.Controls.Add(item); panel_Controls.Controls.SetChildIndex(item, 0); ControlItems.Add(item); return(item); }
public ControlBindings() { InitializeComponent(); if (App.vimageConfig == null) { return; } for (int i = 0; i < App.vimageConfig.Controls.Count; i++) { ControlItem item = new ControlItem(App.vimageConfig.ControlNames[i], App.vimageConfig.Controls[i]); ControlsPanel.Children.Add(item); } CustomActionBindings = new List <ControlItem>(); for (int i = 0; i < App.vimageConfig.CustomActionBindings.Count; i++) { AddCustomActionBinding(i); } }
private void RemoveControlitem(ControlItem item) { panel_Controls.Controls.Remove(item); ControlItems.Remove(item); }
private ControlItem AddControlItem(string name, List<int> control) { ControlItem item = new ControlItem(name, control); panel_Controls.Controls.Add(item); panel_Controls.Controls.SetChildIndex(item, 0); ControlItems.Add(item); return item; }
private void RemoveControlitem(ControlItem item) { panel_Controls.Controls.Remove(item); ControlItems.Remove(item); }