private void newComponent_Click(object sender, EventArgs e)
 {
     //Launch and enable the 'New Component' window and disable the main window for the duration
     NewComponentWindow newComponentWindow = new NewComponentWindow(mainWindow, dbManager);
     newComponentWindow.Show();
     newComponentWindow.Enabled = true;
     mainWindow.Enabled = false;
 }
 public AddBatteryPanel(NewComponentWindow newComponentWindow, DBManager dbManager)
 {
     this.dbManager = dbManager;
     this.newComponentWindow = newComponentWindow;
     InitializeComponent();
     cellConfigurationComboItems = new List<string> { "1S", "2S", "3S", "4S", "5S", "6S", "7S", "8S" };
     cellComboBox.DataSource = cellConfigurationComboItems;
     Enabled = false;
     Visible = false;
 }
        public AddPropellerPanel(NewComponentWindow newComponentWindow, DBManager dbManager)
        {
            this.dbManager = dbManager;
            this.newComponentWindow = newComponentWindow;

            bladeCountComboBoxItems = new List<int> { 2,3,4,5 };
            InitializeComponent();

            bladeCountComboBox.DataSource = bladeCountComboBoxItems;
        }
        public AddMotorPanel(NewComponentWindow newComponentWindow, DBManager dbManager)
        {
            this.newComponentWindow = newComponentWindow;
            this.dbManager = dbManager;

            InitializeComponent();

            //Populate the combo boxes
            minCellComboBoxItems = new List<string> { "1S", "2S", "3S", "4S", "5S", "6S", "7S", "8S" };
            maxCellComboBoxItems = new List<string> { "1S", "2S", "3S", "4S", "5S", "6S", "7S", "8S" };

            minCellComboBox.DataSource = minCellComboBoxItems;
            maxCellComboBox.DataSource = maxCellComboBoxItems;
        }