private void ShowUrls(List <UrlLine> lines) { dicUrlLine = lines.ToDictionary(o => o.LineID, o => o); comboBox2.Items.Clear(); comboBox2.Text = ""; foreach (var value in dicUrlLine.Values) { comboBox2.Items.Add(value.Url); } if (comboBox2.Items.Count > 0) { comboBox2.SelectedIndex = 0; } ResourcesProvider.SetLineState(new[] { comboBox1.SelectedIndex, comboBox2.SelectedIndex }); dicUrlLine = lines.ToDictionary(o => o.LineID, o => o); }
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { CurrentState = new[] { comboBox1.SelectedIndex, comboBox2.SelectedIndex }; ResourcesProvider.SetLineState(CurrentState); }