diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-09 14:55:00 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-09 14:55:00 +0300 |
| commit | 2a459c79e90a2ade3f1dac1ae4541c0f4d74965c (patch) | |
| tree | 969943c6a06d99ff472f24bb1d37e7fe2913bfdf /Software/Visual_Studio/Tango.Core/IO | |
| parent | 67255998056910f53640e11e634cfdbbd7f6880c (diff) | |
| download | Tango-2a459c79e90a2ade3f1dac1ae4541c0f4d74965c.tar.gz Tango-2a459c79e90a2ade3f1dac1ae4541c0f4d74965c.zip | |
Stubs UI v1.4
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/IO')
4 files changed, 104 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/IO/ITemporaryItem.cs b/Software/Visual_Studio/Tango.Core/IO/ITemporaryItem.cs new file mode 100644 index 000000000..ebfc70e60 --- /dev/null +++ b/Software/Visual_Studio/Tango.Core/IO/ITemporaryItem.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Core.IO +{ + public interface ITemporaryItem + { + DateTime Date { get; } + String Path { get; } + IReadOnlyCollection<ITemporaryItem> Items { get; } + void AddItem(ITemporaryItem item); + void RemoveItem(ITemporaryItem item); + void Delete(); + } +} diff --git a/Software/Visual_Studio/Tango.Core/IO/TemporaryFile.cs b/Software/Visual_Studio/Tango.Core/IO/TemporaryFile.cs new file mode 100644 index 000000000..4e119875e --- /dev/null +++ b/Software/Visual_Studio/Tango.Core/IO/TemporaryFile.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Core.IO +{ + public class TemporaryFile + { + + } +} diff --git a/Software/Visual_Studio/Tango.Core/IO/TemporaryFileManager.cs b/Software/Visual_Studio/Tango.Core/IO/TemporaryFileManager.cs new file mode 100644 index 000000000..a4ff8fa27 --- /dev/null +++ b/Software/Visual_Studio/Tango.Core/IO/TemporaryFileManager.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Core.IO +{ + /// <summary> + /// Represents the Tango system temporary file manager. + /// </summary> + public class TemporaryFileManager + { + #region Singleton + + private static TemporaryFileManager _default; + public static TemporaryFileManager Default + { + get + { + if (_default == null) + { + _default = new TemporaryFileManager(); + } + + return _default; + } + } + + private TemporaryFileManager() + { + + } + + #endregion + + + } +} diff --git a/Software/Visual_Studio/Tango.Core/IO/TemporaryItem.cs b/Software/Visual_Studio/Tango.Core/IO/TemporaryItem.cs new file mode 100644 index 000000000..46464bf15 --- /dev/null +++ b/Software/Visual_Studio/Tango.Core/IO/TemporaryItem.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Collections.ObjectModel; + +namespace Tango.Core.IO +{ + public abstract class TemporaryItem : ITemporaryItem + { + public DateTime Date { get; protected set; } + public abstract string Path { get; protected set; } + public abstract IReadOnlyCollection<ITemporaryItem> Items { get; protected set; } + + public virtual void AddItem(ITemporaryItem item) + { + var list = Items.ToList(); + list.Add(item); + + //IReadOnlyCollection<String> s = new ReadOnlyCollection<String>(); + } + + public virtual void Delete() + { + + } + + public virtual void RemoveItem(ITemporaryItem item) + { + + } + } +} |
