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);
		}
예제 #2
0
        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);
        }