void InitPanel() { var importUrlItemList = setting.GetMultiConfItems(); this.oldOptions = JsonConvert.SerializeObject(importUrlItemList); if (importUrlItemList.Count <= 0) { importUrlItemList.Add(new Models.Datas.MultiConfItem()); } foreach (var item in importUrlItemList) { this.flyPanel.Controls.Add(new Views.UserControls.MultiConfUI(item, UpdatePanelItemsIndex)); } UpdatePanelItemsIndex(); }