protected virtual void OnNewFile() { if (this.NewFile != null) { NewFileEventArgs e = new NewFileEventArgs(this.currentFile); this.NewFile(this, e); } }