aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Messages/ChangeVersionMessage.cs
blob: fc616f359c66798137f2c3769be6b77cd9cde03b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.MachineStudio.Common.Authentication;
using Tango.MachineStudio.Common.Update;

namespace Tango.MachineStudio.UI.Messages
{
    public class ChangeVersionMessage
    {
        public LoginResponse LoginResponse { get; set; }
    }
}
pan class="k">using System.Windows.Automation.Provider; using System.Windows.Controls; using Tango.Scripting.Editors.Utils; namespace Tango.Scripting.Editors { /// <summary> /// Exposes <see cref="TextEditor"/> to automation. /// </summary> public class TextEditorAutomationPeer : FrameworkElementAutomationPeer, IValueProvider { /// <summary> /// Creates a new TextEditorAutomationPeer instance. /// </summary> public TextEditorAutomationPeer(TextEditor owner) : base(owner) { Debug.WriteLine("TextEditorAutomationPeer was created"); } private TextEditor TextEditor { get { return (TextEditor)base.Owner; } } void IValueProvider.SetValue(string value) { this.TextEditor.Text = value; } string IValueProvider.Value { get { return this.TextEditor.Text; } } bool IValueProvider.IsReadOnly { get { return this.TextEditor.IsReadOnly; } } /// <inheritdoc/> public override object GetPattern(PatternInterface patternInterface) { if (patternInterface == PatternInterface.Value) return this; if (patternInterface == PatternInterface.Scroll) { ScrollViewer scrollViewer = this.TextEditor.ScrollViewer; if (scrollViewer != null) return UIElementAutomationPeer.CreatePeerForElement(scrollViewer); } return base.GetPattern(patternInterface); } internal void RaiseIsReadOnlyChanged(bool oldValue, bool newValue) { RaisePropertyChangedEvent(ValuePatternIdentifiers.IsReadOnlyProperty, Boxes.Box(oldValue), Boxes.Box(newValue)); } } }