private async void cbx_DropDown(object sender, EventArgs e) { ComboBox cbxSender = sender as ComboBox; ClearLowers(cbxSender.Tag); //UpdateAuthentication(); StructureObjectType priorType = (StructureObjectType)Enum.Parse(typeof(StructureObjectType), cbxSender.Tag.ToString()) - 1; try { prbProgress.Style = ProgressBarStyle.Marquee; cbxSender.DataSource = await StructureManager.QueryChildren((StructureObject)profile.GetType().GetProperty(priorType.ToString()).GetValue(profile), profile); } catch (Exception ex) { new MessageForm("Error", ex.Message); } finally { prbProgress.Style = ProgressBarStyle.Blocks; } }