private bool Save(string path, bool addToList)
{
try
{
using (Stream stream = new FileStream(path, FileMode.Create))
{
BinaryFormatter formatter = new BinaryFormatter();
formatter.Serialize(stream, this);
}
if (addToList)
AddToList((Style) this.Clone(), path);
return true;
}
catch
{
return false;
}
}