public EditorInstance(MainForm winForm) { m_root = new RootNode(); m_winForm = winForm; Setup(); }
public EditorInstance(string fileName, MainForm winForm) { using (FileStream fstream = new FileStream(fileName, FileMode.Open, FileAccess.Read)) { using (BinaryReader reader = new BinaryReader(fstream)) { m_root = AbstractFieldNode.Deserialize(reader) as RootNode; } } m_winForm = winForm; Setup(); }