public void Save(string path)
{
// Stream stream = null;
try
{
new Serializer.Serializer(this).Serialize(path);
//stream = File.Open(path, FileMode.Create);
//BinaryFormatter bformatter = new BinaryFormatter();
//bformatter.Serialize(stream, "version=7.11");
//bformatter.Serialize(stream, this.activeLayer.Id);
//bformatter.Serialize(stream, this.layers);
//this.sections.Save(stream, bformatter);
//bformatter.Serialize(stream, this.loadCases);
//bformatter.Serialize(stream, this.abstractCases);
//bformatter.Serialize(stream, this.jointList);
//bformatter.Serialize(stream, this.constraintList);
//bformatter.Serialize(stream, this.lineList);
//bformatter.Serialize(stream, this.areaList);
//bformatter.Serialize(stream, this.isLocked);
//bformatter.Serialize(stream, this.results);
//bformatter.Serialize(stream, this.designOptions);
//bformatter.Serialize(stream, this.steelDesignOptions.ToString());
//bformatter.Serialize(stream, this.concreteDesignOptions.ToString());
//bformatter.Serialize(stream, this.aluminumDesignOptions.ToString());
//bformatter.Serialize(stream, this.coldFormedDesignOptions.ToString());
currentPath = path;
this.modified = false;
}
catch (Exception)
{
currentPath = "";
System.Windows.Forms.MessageBox.Show(Culture.Get("cantSaveFile") + " " + path);
}
//finally
//{
// if (stream != null)
// stream.Close();
//}
}