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); } }
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); } }