Exemple #1
0
        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();
        }
Exemple #2
0
        private void SelectedSetting_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            dynamic selected = SelectedSetting.SelectedItem;

            Setting = SettingModelClass.Load(selected.Key);
        }