Ejemplo n.º 1
0
        private void FileExtensionHandler()
        {
            switch (_fileHandler.GetFileType()) //check code here
            {
            case FileTypes.FileType.Nwf:
                if (_fileHandler.IsFileLoaded())
                {
                    SetOpenMenu(false);
                    _nwfContext = _fileHandler.GetNWFContext();
                    _common     = new Common(_nwfContext);
                    LoadNWFTabs();
                    SetMenuItems(true);
                }
                break;

            case FileTypes.FileType.Zip:
                if (_fileHandler.IsFileLoaded())
                {
                    SetOpenMenu(false);
                    LoadSupportPackageTabs();
                }
                break;

            case FileTypes.FileType.Log:
                if (_fileHandler.IsFileLoaded())
                {
                    SetOpenMenu(false);
                    LoadLogFileTabs();
                }
                break;

            case FileTypes.FileType.Xml:
                if (_fileHandler.IsFileLoaded())
                {
                    _nfContext = _fileHandler.GetNFContext();
                    SetOpenMenu(false);
                    LoadNFTabs();
                }
                break;

            case FileTypes.FileType.None:
                break;
            }

            SharedStartup();
        }
Ejemplo n.º 2
0
        internal GraphicalFormsTab(NFContext nfcommon, string tabTitle)
        {
            TabTitle = tabTitle;

            InitializeTab();

            //Edit this to match document!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            GetBrowserDocument(nfcommon.NFXmlDocument);

            CheckBrowser();

            Panel panel = new Panel();

            Browser.Dock = DockStyle.Fill;
            panel.Controls.Add(Browser);

            ChildControl = panel;

            ChildControl.Dock = DockStyle.Fill;
            Tab.Controls.Add(ChildControl);

            _interop = new FormsInterop(nfcommon);
            Browser.ObjectForScripting = _interop;
        }
Ejemplo n.º 3
0
 internal FormsInterop(NFContext context)
 {
     _context = context;
 }