using Kingo.Plugin.BatchDataLoad.Model; using Kingo.PluginServiceInterface; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using UIShell.OSGi; namespace Kingo.Plugin.BatchDataLoad.View { /// /// UcTreeListViewControl.xaml 的交互逻辑 /// public partial class UcTreeListViewControl : UserControl { private static UcTreeListViewControl instance; public static UcTreeListViewControl Instance { get { if (instance == null) { instance = new UcTreeListViewControl(); } return instance; } } public UcTreeListViewControl() { InitializeComponent(); instance = this; } public void Refresh() { treeListControl.ItemsSource = null; treeListControl.ItemsSource = BatchLoadDataModel.Instance.BatchLoadDatas; //ISystemCfg SystemCfg = BundleRuntime.Instance.GetFirstOrDefaultService(); //SystemConfig2 Cfg = SystemCfg.Load(); //if (Cfg != null) //{ // treeListControl.ItemsSource = Cfg.BHTBLayerLoadCfg; //} treeListControl.RefreshData(); } } }