aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/MachineSerialView.xaml.cs
blob: 0d6c0413ae2e35e10bfd7001790d3f9933746062 (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Tango.MachineStudio.UI.Views
{
    /// <summary>
    /// Interaction logic for MachineSerialView.xaml
    /// </summary>
    public partial class MachineSerialView : UserControl
    {
        public MachineSerialView()
        {
            InitializeComponent();
        }
    }
}
pan>} /// <summary> The text exactly as in source </summary> public string EscapedValue { get; set; } /// <summary> The text with all entity references resloved </summary> public string Value { get; set; } /// <summary> True if the text contains only whitespace characters </summary> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", MessageId = "Whitespace", Justification = "System.Xml also uses 'Whitespace'")] public bool ContainsOnlyWhitespace { get; set; } /// <inheritdoc/> public override void AcceptVisitor(IAXmlVisitor visitor) { visitor.VisitText(this); } /// <inheritdoc/> internal override bool UpdateDataFrom(AXmlObject source) { if (!base.UpdateDataFrom(source)) return false; AXmlText src = (AXmlText)source; if (this.EscapedValue != src.EscapedValue || this.Value != src.Value) { OnChanging(); this.EscapedValue = src.EscapedValue; this.Value = src.Value; OnChanged(); return true; } else { return false; } } /// <inheritdoc/> public override string ToString() { return string.Format(CultureInfo.InvariantCulture, "[{0} Text.Length={1}]", base.ToString(), this.EscapedValue.Length); } } }