示例#1
0
 private void SetVersionList(string[] Versions)
 {
     if (this.comboBox1.InvokeRequired)
     {
         SetVersionListCallback d = new SetVersionListCallback(SetVersionList);
         this.Invoke(d, new object[] { Versions });
     }
     else
     {
         this.comboBox1.Items.Clear();
         this.comboBox1.Items.AddRange(Versions);
         this.comboBox1.SelectedIndex = this.comboBox1.Items.Count - 1;
         this.Online = true;
         SetStatus("Idle", Color.Gray);
     }
 }
示例#2
0
 private void SetVersionList(string[] Versions)
 {
     if (this.comboBox1.InvokeRequired)
     {
         SetVersionListCallback d = new SetVersionListCallback(SetVersionList);
         this.Invoke(d, new object[] { Versions });
     }
     else
     {
         this.comboBox1.Items.Clear();
         this.comboBox1.Items.AddRange(Versions);
         this.comboBox1.SelectedIndex = this.comboBox1.Items.Count-1;
         this.Online = true;
         SetStatus("Idle", Color.Gray);
     }
 }