protected override void OnOwnerChanged(EventArgs e) { this.pad = this.Owner as ConsolePad; if (this.pad == null) return; box = this.ComboBox as ComboBox; if (this.box == null) return; foreach (var name in Enum.GetNames(typeof(SupportedLanguage))) box.Items.Add(name); box.SelectedIndex = 0; base.OnOwnerChanged(e); }
protected override void OnOwnerChanged(EventArgs e) { this.pad = this.Owner as ConsolePad; if (this.pad == null) { return; } box = this.ComboBox as ComboBox; if (this.box == null) { return; } foreach (var name in Enum.GetNames(typeof(SupportedLanguage))) { box.Items.Add(name); } box.SelectedIndex = 0; base.OnOwnerChanged(e); }