aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechnicianModuleSettings.cs
blob: 65ff8d537bd49e1b7f2f134b5098585fbf0427ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Settings;

namespace Tango.MachineStudio.Technician
{
    public class TechnicianModuleSettings : SettingsBase
    {
        /// <summary>
        /// Gets or sets the graphs view duration in seconds.
        /// </summary>
        public int GraphsDuration { get; set; }

        /// <summary>
        /// Gets or sets the diagnostics response interval in milliseconds.
        /// </summary>
        public int DiagnosticsResponseIntervalMilli { get; set; }

        /// <summary>
        /// Gets or sets the las tech project file.
        /// </summary>
        public String LastTechProjectFile { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="TechnicianModuleSettings"/> class.
        /// </summary>
        public TechnicianModuleSettings()
        {
            GraphsDuration = 10;
            DiagnosticsResponseIntervalMilli = 30;
        }
    }
}
/// </summary> /// <typeparam name="T"></typeparam> /// <param name="key">The key.</param> /// <param name="value">The value.</param> void Put<T>(String key, T value); /// <summary> /// Upserts the specified key and value. /// The value must be of the specified DataType. /// </summary> /// <param name="key">The key.</param> /// <param name="type">The type.</param> /// <param name="value">The value.</param> void Put(String key, DataType type, Object value); /// <summary> /// Gets the value by the specified key /// </summary> /// <param name="key">The key.</param> /// <returns></returns> Object Get(String key); /// <summary> /// Gets the value by the specified key /// </summary> /// <param name="key">The key.</param> /// <param name="defaultValue">Will execute put when the key was not found.</param> /// <returns></returns> Object Get(String key, Object defaultValue); /// <summary> /// Gets the value of type T by the specified key /// </summary> /// <typeparam name="T"></typeparam> /// <param name="key">The key.</param> /// <returns></returns> T Get<T>(String key); /// <summary> /// Gets the value of type T by the specified key /// </summary> /// <typeparam name="T"></typeparam> /// <param name="key">The key.</param> /// <param name="defaultValue">Will execute put when the key was not found.</param> /// <returns></returns> T Get<T>(String key, T defaultValue); /// <summary> /// Gets the full data store item by the specified key. /// </summary> /// <param name="key">The key.</param> /// <returns></returns> IDataStoreItem GetItem(String key); /// <summary> /// Gets the full data store item by the specified key. /// </summary> /// <param name="key">The key.</param> /// <param name="defaultValue">Will execute put when the key was not found.</param> /// <returns></returns> IDataStoreItem GetItem(String key, Object defaultValue); /// <summary> /// Gets all the data store items in the collection. /// </summary> /// <returns></returns> List<IDataStoreItem> GetAll(); /// <summary> /// Gets all the data store unsynchronized items in the collection. /// </summary> /// <returns></returns> List<IDataStoreItem> GetUnsynchronized(); /// <summary> /// Deleted an item by the specified key. /// </summary> /// <param name="key">The key.</param> void Delete(String key); /// <summary> /// Deletes all items in the collection. /// </summary> void DeleteAll(); /// <summary> /// Returns the number of items in the collection. /// </summary> /// <returns></returns> int Count(); } }