Code clean up
- Remove unused SaveAs function from SlicePresetsWindow - Remove unused LoadProfileFromMCWS() - More consistent formatting - Move SetValue call after adding Profile, to ensure ProfilePath works during save
This commit is contained in:
parent
98c26d0a7c
commit
4e727def1b
2 changed files with 9 additions and 57 deletions
|
|
@ -234,39 +234,5 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
|
||||
return container;
|
||||
}
|
||||
|
||||
private void SaveAs()
|
||||
{
|
||||
FileDialog.SaveFileDialog(
|
||||
new SaveFileDialogParams("Save Slice Preset|*" + ProfileManager.ConfigFileExtension)
|
||||
{
|
||||
FileName = presetNameInput.Text
|
||||
},
|
||||
(saveParams) =>
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
if (!string.IsNullOrEmpty(saveParams.FileName))
|
||||
{
|
||||
// TODO: If we stil want this functionality, it should be moved to a common helper method off of SettingsLayer and resused throughout
|
||||
//
|
||||
// GenerateConfigFile(saveParams.FileName) ...
|
||||
|
||||
//List<string> configFileAsList = new List<string>();
|
||||
|
||||
//foreach (KeyValuePair<String, SliceSetting> setting in windowController.ActivePresetLayer.settingsDictionary)
|
||||
//{
|
||||
// string settingString = string.Format("{0} = {1}", setting.Value.Name, setting.Value.Value);
|
||||
// configFileAsList.Add(settingString);
|
||||
//}
|
||||
//string configFileAsString = string.Join("\n", configFileAsList.ToArray());
|
||||
|
||||
//FileStream fs = new FileStream(fileName, FileMode.Create);
|
||||
//StreamWriter sw = new System.IO.StreamWriter(fs);
|
||||
//sw.Write(configFileAsString);
|
||||
//sw.Close();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue