Esempio n. 1
0
        private bool OpenFile(FileBase asset)
        {
            // cannot open files if this format is selected
            if ((asset as FileSDS) == null)
            {
                if (ToolkitSettings.UseSDSToolFormat)
                {
                    MessageBox.Show("These files are not supported with SDSTools format. Please navigate to the settings and de-select 'Use SDS Tool Format'", "Toolkit");
                    return(false);
                }
            }

            if (!asset.Open())
            {
                return(false);
            }

            if (asset is FileSDS)
            {
                OpenSDSDirectory(asset.GetUnderlyingFileInfo());
            }
            else
            {
                OpenDirectory(currentDirectory);
            }
            return(true);
        }
Esempio n. 2
0
        private bool OpenFile(FileBase asset)
        {
            if (!asset.Open())
            {
                return(false);
            }

            if (asset is FileSDS)
            {
                OpenSDSDirectory(asset.GetUnderlyingFileInfo());
            }
            else
            {
                OpenDirectory(currentDirectory);
            }
            return(true);
        }