Commit graph

19 commits

Author SHA1 Message Date
Matt Moening
5b8ff5cd29 Changed TryGetValue to ContainsKey for clarity 2016-08-11 13:01:34 -07:00
Matt Moening
bdf3e8f2a5 Importing a printer/settings from a file will now notify the user if the file contains no valid user settings
- ImportFomEisting now returns a bool of whether or not it succeeded
 - PrinterSettings now has a Contains method
 - merging or importing quality/material settings check to make sure at least one setting was importable and notifies user if not
2016-08-10 16:39:08 -07:00
John Lewin
e29bf11631 Skip migrations if DocumentVersion missing
- Disable old migrations
 -  Issue MatterHackers/MCCentral#252
2016-08-04 08:57:14 -07:00
John Lewin
43e94f6ed4 DownloadPrinterProfile should return an instance of PrinterSettings
- Persistence of profile moves to caller
 - Rename to GetPrinterProfileAsync
 - Expose PrinterSettings.Save for use in external assemblies
 - Issue MatterHackers/MCCentral#227,  MatterHackers/MCCentral#242
2016-07-28 09:46:12 -07:00
John Lewin
4d0fb6e67c Revise Oem settings tests
- Remove no longer necessary LayerInfo class
 - Remove now redundant MaterialLayers, QualityLayers properties
 - Remove ConfigIni property
 - Remove unused functions
 - Refactor tests to receive a PrinterSettings param
2016-07-20 18:32:17 -07:00
John Lewin
98ee008046 Improve comments to better describe behavior 2016-07-20 18:31:20 -07:00
Matt Moening
d96531152b converted oemprofiles to be .printer files and to be retrieved as such from various locations.
Updated to test to reflect the actions actually done by the request (not sure why they were not failing before)
2016-07-20 17:39:19 -07:00
johnlewin
edc7e13f3b Merge pull request #1135 from gregory-diaz/master
Added the ability for users to load the last usable profile in their profile history in the event that their current profile is corrupt. Also added the ability to load a public profile in the event that a guest profile is corrupt.
2016-07-20 12:34:30 -07:00
Greg
e6a6abee72 Added the ability for users to load the last usable profile in their profile history in the event that their current profile is corrupt. Also added the ability to load a public profile in the event that a guest profile is corrupt. 2016-07-19 17:21:59 -07:00
Greg
e4c30c80ca Added ability to recover from errors encountered when trying to load corrupted user and guest profiles. 2016-07-19 15:29:47 -07:00
Lars Brubaker
e5c617024a Merge branch 'master' of https://github.com/MatterHackers/MatterControl 2016-07-19 13:29:04 -07:00
Lars Brubaker
451626504e Renamed SettingsProflie to SettingsHelpers 2016-07-19 13:28:10 -07:00
Greg
b08cb616e9 refactored recover user profile code so that it works with the changes to PrinterSettings that were pushed yesterday. 2016-07-19 13:27:20 -07:00
Matt Moening
8789c4681e Printer Settings defaults DocumentVersion to the lastest
Serializing Printer setting now Ignores Helpers and PrinterSelected
2016-07-19 12:50:04 -07:00
John Lewin
215a27f79c Revert back to lazy loaded KnownSettings 2016-07-18 18:24:01 -07:00
John Lewin
80dab6c9e8 Make PrintLevelingChange event static
- Cleanup namespaces
 - Guard for null reference with null conditional invoke
2016-07-18 16:58:25 -07:00
John Lewin
85b2ddefc3 Rename PrintLevelingEnabled event 2016-07-18 16:58:25 -07:00
John Lewin
54d165d15f Consolidate member names 2016-07-18 16:58:25 -07:00
John Lewin
42f133aa70 Consolidate SettingsProfile and PrinterSettings types 2016-07-18 16:58:25 -07:00