public void Dispose() { if (this.gridControl != null && this.dataTypeControl.Source != null) { var typeID = this.dataTypeControl.Source.TypeID; var settings = new Xceed.Wpf.DataGrid.Settings.SettingsRepository(); this.gridControl.SaveUserSettings(settings, Xceed.Wpf.DataGrid.Settings.UserSettings.All); this.Configs[this.GetType(), typeID.ToString()] = settings; } }
public void Dispose() { if (this.gridControl != null && this.dataTableControl.Source != null) { var tableID = this.dataTableControl.Source.TableID; var settings = new Xceed.Wpf.DataGrid.Settings.SettingsRepository(); this.gridControl.SaveUserSettings(settings, Xceed.Wpf.DataGrid.Settings.UserSettings.All); this.Configs[this.GetType(), $"{nameof(this.columnsHashValue)}-{tableID}"] = this.columnsHashValue; this.Configs[this.GetType(), tableID.ToString()] = settings; } }