NClass.DiagramEditor.Style.Save C# (CSharp) Method

Save() private method

private Save ( string path, bool addToList ) : bool
path string
addToList bool
return bool
		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;
			}
		}

Same methods

Style::Save ( string filePath ) : bool