Platform providers
- New Provider model - Remove WindowsFileDialogs project - Remove PlatformAbstract assembly, use AggContext - Rename OsInformation to OperatingSystem
This commit is contained in:
parent
82c2d333e7
commit
3a9833697d
108 changed files with 398 additions and 435 deletions
|
|
@ -33,7 +33,7 @@ using System.IO;
|
|||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using MatterHackers.Agg.Image;
|
||||
using MatterHackers.Agg.PlatformAbstract;
|
||||
using MatterHackers.Agg.Platform;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.MatterControl.PrinterControls;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
|
|
@ -83,7 +83,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
|
|||
{
|
||||
try
|
||||
{
|
||||
imageOnDisk = StaticData.Instance.FileExists(filePath);
|
||||
imageOnDisk = AggContext.StaticData.FileExists(filePath);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
@ -93,7 +93,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
|
|||
|
||||
if (imageOnDisk)
|
||||
{
|
||||
return StaticData.Instance.LoadImage(filePath);
|
||||
return AggContext.StaticData.LoadImage(filePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ using System.IO;
|
|||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using MatterHackers.Agg.Image;
|
||||
using MatterHackers.Agg.PlatformAbstract;
|
||||
using MatterHackers.Agg.Platform;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.MatterControl.PrinterControls;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
|
|
@ -79,7 +79,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
|
|||
{
|
||||
try
|
||||
{
|
||||
imageOnDisk = StaticData.Instance.FileExists(filePath);
|
||||
imageOnDisk = AggContext.StaticData.FileExists(filePath);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
@ -89,7 +89,7 @@ namespace MatterHackers.MatterControl.PrinterCommunication.Io
|
|||
|
||||
if (imageOnDisk)
|
||||
{
|
||||
return StaticData.Instance.LoadImage(filePath);
|
||||
return AggContext.StaticData.LoadImage(filePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue