Save&Load

There are 2 ways:
- Text
- Serialization
Method 1
Save math expression to text
- using MEEL.MathTree;
- string savedString = this.mathControl1.SaveToString();
- // TODO: Save to DB
Display of the math expression from the text
- // Load from DB
- string savedString = ...
- // Load and display
- this.mathControl1.LoadFromString(savedString);
Method 2. Serialization
To Save
- byte[] data = this.mathControl1.Save();
- // Save data to DB
To Load
- // data from DB
- byte[] dataFromDb = ...
- this.mathControl1.Load(dataFromDb);