Beispiel #1
0
        public NavigationControl(BIOSItem item, BiosItemControl parentControl)
        {
            InitializeComponent();
            _parentControl         = parentControl;
            this.Item              = item;
            this.textTo.Text       = item.to;
            this.textRecuring.Text = item.recuring;
            var navControl = new SerialInvokeControl(item.navigation);

            this.panelNav.Controls.Add(navControl);
            navControl.Dock = DockStyle.Fill;
            var serialInvokeControl = new SerialInvokeControl(item.invoke);

            this.panelInvoke.Controls.Add(serialInvokeControl);
            serialInvokeControl.Dock = DockStyle.Fill;

            //checkBox.Checked = true;
        }
Beispiel #2
0
 public void SelectBiosItem(string key)
 {
     this._selectedKey = key;
     panelBiosItem.Controls.Clear();
     foreach (BiosConfigControl biosconfigControl in this.scrollableControl_biosConfig.Controls)
     {
         if (biosconfigControl.BiosConfig == key)
         {
             biosconfigControl.BackColor = Color.DimGray;
             _selectedBiosItemControl    = new BiosItemControl(key, _biosConfigEdit.BIOConfigDictionary[key]);
             panelBiosItem.Controls.Add(_selectedBiosItemControl);
             _selectedBiosItemControl.Dock = DockStyle.Fill;
         }
         else
         {
             biosconfigControl.BackColor = Color.Transparent;
         }
     }
 }