/// <summary> /// Remove the name. /// </summary> void CadKit.Interfaces.IRecentFileList.remove(string name) { CadKit.Interfaces.IRecentFileList recent = this.Caller as CadKit.Interfaces.IRecentFileList; if (null != recent) { recent.remove(name); } }
/// <summary> /// Clear the list. /// </summary> void CadKit.Interfaces.IRecentFileList.clear() { CadKit.Interfaces.IRecentFileList recent = this.Caller as CadKit.Interfaces.IRecentFileList; if (null != recent) { recent.clear(); } }
/// <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); } }