public void CreateMutex() { //TODO: Validate the possibility of openning this project. //I need to make sure that i'll release the mutexes. MutexList.Add(RelativePath); }
public ProjectInfo(Int32Rect frameSize) { //Check if the parameter exists. if (string.IsNullOrWhiteSpace(UserSettings.All.TemporaryFolder)) { UserSettings.All.TemporaryFolder = Path.GetTempPath(); } RelativePath = DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss") + Path.DirectorySeparatorChar; FrameSize = frameSize; Directory.CreateDirectory(FullPathOfProject); MutexList.Add(RelativePath); }