using System; using System.Collections.Generic; using System.Text; using Microsoft.VisualStudio.Shell; using System.ComponentModel; namespace ETHZurich.OrigoVSIntegration { class OrigoWorkitemSetting : DialogPage { private int m_NumberOfWorkitems; [Description("Number of workitems to show")] [DefaultValue(25)] public int NumberOfWorkitems { get { return m_NumberOfWorkitems; } set { if (value <= 0) { m_NumberOfWorkitems = 25; } else { m_NumberOfWorkitems = value; } } } private bool m_UnreadOnly; [Description("Show only workitems which you haven't read before")] [DefaultValue(false)] public bool UnreadOnly { get { return m_UnreadOnly; } set { m_UnreadOnly = value; } } private int m_RefreshInterval; [Description("Interval in minutes how often the Origo workitems will be refreshed")] [DefaultValue(60)] public int RefreshInterval { get { return m_RefreshInterval; } set { if (value <= 0) { m_RefreshInterval = 60; } else { m_RefreshInterval = value; } } } } }