コード例 #1
0
ファイル: XMLAccess.cs プロジェクト: xplusplus/ASCOMPlatform
        internal void RenameKey(string CurrentSubKeyName, string NewSubKeyName)
        {
            try
            {
                GetProfileMutex("RenameKey", CurrentSubKeyName + " " + NewSubKeyName);
                sw.Reset(); sw.Start(); // Start timing this call
                TL.LogMessage("RenameKey", "Current SubKey: \"" + CurrentSubKeyName + "\"" + " New SubKey: \"" + NewSubKeyName + "\"");

                FileStore.RenameDirectory(CurrentSubKeyName, NewSubKeyName);
                sw.Stop(); TL.LogMessage("  ElapsedTime", "  " + sw.ElapsedMilliseconds + " milliseconds");
            }
            finally
            {
                ProfileMutex.ReleaseMutex();
            }
        }