Serialisation from Model

Aug 20, 2013 at 12:58 AM

I have an a service which responsible for all opened tabs and documents.
And for current project (like in msvc solution).
 public interface IWorkspace : IService, ISavableModel
        string Title { get; set; }
        IWorkspaceProject Project { get; }
        WorkspaceState State { get; }
        bool AnyDocumentIsModified { get; }
        void ShowTool(Type toolType);
        void ShowDocument(Type toolType);
        void SaveLayout();
        void LoadLayout();
        void NewProject();
        void OpenProject();
I create it as Model and Service cause i have to access to it from ModuleBase.OnInitialized() to bind commands to IWorkspace.ShowTool.
And i have some problems with it cause i have to call WorkspaceSevice.Load('file.xml'); from ModuleBase.OnInitialized. I think it's not good. I don't find any examples about serialization, but i think, it's possible to load data from file without recreating instance.
Aug 20, 2013 at 7:17 AM
I don't understand your question. What is it that you need?

Here are the docs:

It is recommended that you use the latest nightly build (feature complete for version 3.7). It has a brand new serialization engine which is much better.