예제 #1
0
        /// <summary>
        ///   CTOR
        /// </summary>
        private EnvControlsPersistencyPath()
        {
#if PocketPC
            _defaultPath = OSEnvironment.getAssemblyFolder();
#else
            //1.	If the path is not defined (default) then the files will be created in the (same folder as the form state persistency file.)
            //•	In xp: C:\Documents and Settings\<user>\Application Data\MSE\<APP GUI ID>\
            //•	In Win 7 and Win 8:  C:\Users\<user>\AppData\Roaming\MSE\<APP GUI ID>
            _defaultPath = OSEnvironment.get("APPDATA")
                           + Path.DirectorySeparatorChar
                           + (UtilStrByteMode.isLocaleDefLangJPN()
                          ? "MSJ"
                          : "MSE")
                           + Path.DirectorySeparatorChar;
#endif
        }
예제 #2
0
        /// <summary>
        ///   CTOR
        /// </summary>
        private FormUserState()
        {
            IsDisabled = false;

#if PocketPC
            _dirPath = OSEnvironment.getAssemblyFolder();
#else
            _dirPath = OSEnvironment.get("APPDATA")
                       + Path.DirectorySeparatorChar
                       + (UtilStrByteMode.isLocaleDefLangJPN()
                          ? "MSJ"
                          : "MSE")
                       + Path.DirectorySeparatorChar
                       + Manager.Environment.GetGUID()
                       + Path.DirectorySeparatorChar;
#endif
        }