private void Init() { tree.ItemsSource = null; try { TrendModelClass.setting = SettingModelClass.Load(ID); TrendModelClass.Init(); } catch (Exception ex) { MessageBox.Show($"{ex.Source} {ex.Message}"); } new Thread(Update).Start(); }
private void SelectedSetting_SelectionChanged(object sender, SelectionChangedEventArgs e) { dynamic selected = SelectedSetting.SelectedItem; Setting = SettingModelClass.Load(selected.Key); }