Consolidate SettingsProfile and PrinterSettings types
This commit is contained in:
parent
f304e9f3d6
commit
42f133aa70
14 changed files with 837 additions and 937 deletions
|
|
@ -61,17 +61,17 @@ namespace MatterControl.Tests.MatterControl
|
|||
}
|
||||
}
|
||||
|
||||
SettingsProfile GettProfile(string[] settings)
|
||||
PrinterSettings GettProfile(string[] settings)
|
||||
{
|
||||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
for(int i=0; i<settings.Length; i+=2)
|
||||
{
|
||||
dictionary.Add(settings[i], settings[i + 1]);
|
||||
}
|
||||
var profile = new SettingsProfile(new PrinterSettings()
|
||||
var profile = new PrinterSettings()
|
||||
{
|
||||
OemLayer = new PrinterSettingsLayer(dictionary)
|
||||
});
|
||||
};
|
||||
|
||||
return profile;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue