private void saveButtonClicked(object sender, EventArgs e) { int k = strategyComboBox.SelectedIndex; portfolios[k].machines = MachinesBuilder.build(machineForms); InitDataReader.write(portfolios); }
private void applyChangesToPreviousSelectedPortfolio() { int k = strategyComboBox.previousIndex; if (k < 0) { return; } portfolios[k].machines = MachinesBuilder.build(machineForms); }