private void InitializeSelectBoxes(int id) { IOFile = new LoadSaveFile(); IOFile.LoadData(fileList.Data[id]); CriteriaSwitch.Items.Clear(); AlternativeSwitch.Items.Clear(); Alternatives.Clear(); criterias.Clear(); Alternatives = IOFile.getAlternatives(); criterias = IOFile.getCriterias(); for (int i = 0; i < criterias.CriteriasNames.Count; i++) { CriteriaSwitch.Items.Add(criterias.CriteriasNames[i]); } CriteriaSwitch.SelectionMode = SelectionMode.Multiple; for (int i = 0; i < Alternatives.Count; i++) { AlternativeSwitch.Items.Add(Alternatives[i].Name); } AlternativeSwitch.SelectionMode = SelectionMode.Multiple; }