aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/AppBarItems/PowerUpAppBarItem.cs
blob: 966e787698b58545c08d3ee078f8a1de56022411 (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.PMR.Power;
using Tango.PPC.Common.Notifications;

namespace Tango.PPC.UI.AppBarItems
{
    public class PowerUpAppBarItem : AppBarItem
    {
        private StartPowerUpResponse _status;
        public StartPowerUpResponse Status
        {
            get { return _status; }
            set { _status = value; RaisePropertyChangedAuto(); }
        }

        /// <summary>
        /// Gets or sets the view type.
        /// </summary>
        public override Type ViewType
        {
            get
            {
                return typeof(PowerUpAppBarItemView);
            }
        }
    }
}
> = line.PreviousLine; if (previousLine != null) { ISegment indentationSegment = TextUtilities.GetWhitespaceAfter(document, previousLine.Offset); string indentation = document.GetText(indentationSegment); // copy indentation to line indentationSegment = TextUtilities.GetWhitespaceAfter(document, line.Offset); document.Replace(indentationSegment, indentation); } } /// <summary> /// Does nothing: indenting multiple lines is useless without a smart indentation strategy. /// </summary> public virtual void IndentLines(TextDocument document, int beginLine, int endLine) { } } }