예제 #1
0
 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);
 }
예제 #2
0
 private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
 {
     CurrentState = new[] { comboBox1.SelectedIndex, comboBox2.SelectedIndex };
     ResourcesProvider.SetLineState(CurrentState);
 }