void initWin() { this.Language = System.Windows.Markup.XmlLanguage.GetLanguage( System.Globalization.CultureInfo.CurrentCulture.IetfLanguageTag); tiffList.ItemsSource = TiffItems; try { Settings = semImageData.FromString(Properties.Settings.Default.LastData); } catch { Settings = new semImageData(); } try { calibList = new BindingList<CalibItem>(); calibList.ListChanged += calibList_ListChanged; foreach (CalibItem it in JsonConverter<List<CalibItem>>.Deserialize(Properties.Settings.Default.calibList)) { calibList.Add(it); } } catch //(Exception ex) { //MessageBox.Show(ex.Message); } currentSettings = Settings; calibListView.ItemsSource = calibList; }
private void SaveButton_Copy_Click(object sender, RoutedEventArgs e) { Settings = new semImageData(); currentSettings = Settings; }