示例#1
0
 internal static void SetupFolderIfNotExists(string name)
 {
     if (!Directory.Exists(GetFolder(name)))
     {
         SetupFolder(ButlerFactory.CreateDefaultButler(name, name, name), Resources.EmotionalJ_feel);
     }
 }
示例#2
0
        internal static Butler Load(string name)
        {
            Butler butler;

            if (Directory.Exists(GetFolder(name)))
            {
                string butlerSettingFile = GetSettingFile(name);
                butler = LoadButler(name, butlerSettingFile);
            }
            else
            {
                butler = ButlerFactory.CreateDefaultButler(name, name, name);
            }

            InitializeAppearances(butler, GetFolder(name));
            return(butler);
        }