private void _projectControl_ProjectItemActivated(object sender, ProjectItemEventArgs e)
 {
     if (e.ProjectItem.Type == ProjectItemType.File && FindEditor(e.ProjectItem) == null)
     {
         OpenEditor(e.ProjectItem.Path);
     }
 }
        private void _projectControl_ProjectItemContextMenu(object sender, ProjectItemEventArgs e)
        {
            switch (e.ProjectItem.Type)
            {
            case ProjectItemType.Folder:
                _folderContextMenu.Show(Cursor.Position);
                break;

            case ProjectItemType.Root:
                _projectContextMenu.Show(Cursor.Position);
                break;

            case ProjectItemType.File:
                _fileContextMenu.Show(Cursor.Position);
                break;
            }
        }
 protected virtual void OnProjectItemContextMenu(ProjectItemEventArgs e)
 {
     ProjectItemContextMenu?.Invoke(this, e);
 }
 protected virtual void OnProjectItemActivated(ProjectItemEventArgs e)
 {
     ProjectItemActivated?.Invoke(this, e);
 }