mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 23:39:51 +01:00
af832f23cf
* DataSet field Uuid is not really a uuid. Renamed to Id to avoid misunderstandings. * Renamed properties DataSet.Type and DataSourceItem.DataType to Category. The old name was not reflecting what they were. * Renamed property DataSet.TypeString to DataSet.DataSourceName so it reflects better what it is. * Renamed property DataSet.Name to DataSet.FriendlyName for clarity. Removed duplicate string.Format() call. * The DataSourceItem.Uuid is not really a uuid. Renamed it to Id to avoid misunderstandings. Also, compacted DataSourceItem constructors. * Removed unused and duplicate properties. - DataKey.Hide was unused. Once removed, DataSet.Deselected was unused, hence was also removed. - Dataset.Draw was duplicating DataSet.Show, hence was removed. - DataSet.NeverShow is not necessary, DataSet.Hide can be used both for datasources that should not be shown at all as well as datasources that are wrong for this object. * Made DataSet.FriendlyName a get-only property and compacted repetitive code. * Use the Helpers regular expressions for assigning the datasource category. * Removed id from the DataSet constructor parameters. It can be constructed from the XenObject and the datasource name. * Compacted the code for readability (it was difficult to follow the build of the URIs). Also, removed use of Helper.GetUuid to avoid the use of reflection. Minimised casts. * CP-36567: Use the datasource units as specified in the API instead of deducing them from the datasource name. - Also, merged static method DataSet.Create into the DataSet constructor. - Minor restructuring of the ArchiveMaintainer file (moved all private fields and properties closer together). - Added new resource file so the units can be separated from Messages. |
||
---|---|---|
.. | ||
Helpers.cs | ||
PrettyTimeSpan.cs | ||
StringExtensions.cs | ||
TimeSpanExtensions.cs | ||
Util.cs |