Esempio n. 1
0
        static public ControlObjectsInfo CreateNewControlObjectFile(string filePath, string fileName)
        {
            ControlObjectsInfo retValue = new ControlObjectsInfo();

            try
            {
                SettingsFileIO settingsFileIO = new SettingsFileIO();
                if (settingsFileIO.CreateNewFile(SettingsContent.FileType.OBJECT, filePath + "\\" + fileName))
                {
                    retValue.objectFilePath = Path.GetFullPath(filePath + "\\" + fileName + SettingsContent.universalFileExtName);
                }
            }
            catch (Exception) { };
            return(retValue);
        }
Esempio n. 2
0
        static public BoardInfo CreateNewBoardFile(string filePath, string fileName)
        {
            BoardInfo retValue = new BoardInfo();

            try
            {
                SettingsFileIO settingsFileIO = new SettingsFileIO();
                if (settingsFileIO.CreateNewFile(SettingsContent.FileType.BOARD, filePath + "\\" + fileName))
                {
                    retValue.boardFileLoaded = true;
                    retValue.boardFilePath   = Path.GetFullPath(filePath + "\\" + fileName + SettingsContent.universalFileExtName);
                }
            }
            catch (Exception) { };
            return(retValue);
        }
Esempio n. 3
0
        static public GraphicOptionsValue CreateNewGraphicOptionsFile(string filePath, string fileName)
        {
            GraphicOptionsValue retValue = new GraphicOptionsValue();

            try
            {
                SettingsFileIO settingsFileIO = new SettingsFileIO();
                if (settingsFileIO.CreateNewFile(SettingsContent.FileType.SETTINGS, filePath + "\\" + fileName))
                {
                    retValue.optionsFileLoaded = true;
                    retValue.optionsFilePath   = Path.GetFullPath(filePath + "\\" + fileName + SettingsContent.universalFileExtName);
                    settingsFileIO.Dispose();
                }
            }
            catch (Exception) { };
            return(retValue);
        }