상속: System.Windows.Forms.UserControl
예제 #1
0
        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);
        }
예제 #2
0
        private void AddControlItem(string name, List <int> control)
        {
            ControlItem item = new ControlItem(name, control);

            tabPage2.Controls.Add(item);
            ControlItems.Add(item);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
            }
        }
예제 #5
0
 private void RemoveControlitem(ControlItem item)
 {
     panel_Controls.Controls.Remove(item);
     ControlItems.Remove(item);
 }
예제 #6
0
        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;
        }
예제 #7
0
 private void RemoveControlitem(ControlItem item)
 {
     panel_Controls.Controls.Remove(item);
     ControlItems.Remove(item);
 }