public ManualSimulationDialog() { InitializeComponent(); _failistObject = DataAccessor.DeserializeData(); this.FormBorderStyle = FormBorderStyle.FixedDialog; foreach (var item in _failistObject.IdFailureX) { comboBox1.Items.Add(item); } foreach (var item in _failistObject.IdPlanes) { comboBox2.Items.Add(item); } comboBox1.SelectedIndexChanged += ComboBox1_SelectedIndexChanged; comboBox2.SelectedIndexChanged += ComboBox2_SelectedIndexChanged; RemoveErrorButton.Click += RemoveErrorButton_Click; }