/// <summary> /// Add the name. /// </summary> void CadKit.Interfaces.IRecentFileList.add(string name) { CadKit.Interfaces.IRecentFileList recent = this.Caller as CadKit.Interfaces.IRecentFileList; if (null != recent) { recent.add(name); } }
/// <summary> /// Read the file and add it to the scene. /// </summary> public void open(string file, object caller) { // Make sure we're empty. this._clearScene(); // Insert the new file. this.insert(file, caller); // Set document name. this.Name = file; // Add file to recent-file list. CadKit.Interfaces.IRecentFileList recent = caller as CadKit.Interfaces.IRecentFileList; if (null != recent) { recent.add(file); } }