XSharp.Project.XSharpFileNode.DoDefaultAction C# (CSharp) Метод

DoDefaultAction() защищенный Метод

Open a file depending on the SubType property associated with the file item in the project file
protected DoDefaultAction ( ) : void
Результат void
        protected override void DoDefaultAction()
        {
            var manager = (FileDocumentManager)this.GetDocumentManager();
            Debug.Assert(manager != null, "Could not get the FileDocumentManager");

            Guid viewGuid;

            if(HasDesigner) {
                viewGuid = VSConstants.LOGVIEWID_Designer;
            } else if(GetItemType(this.FileName) == ProjectFileConstants.Compile) {
                viewGuid = VSConstants.LOGVIEWID_Code;
            } else {
                viewGuid = VSConstants.LOGVIEWID_Primary;
            }


            IVsWindowFrame frame;
            manager.Open(false, false, viewGuid, out frame, WindowFrameShowAction.Show);
        }