internal WindowDisplayNameEditor(SensorTreeNode node)
        {
            InitializeComponent();

            this.DataContext    = node;
            originalDisplayName = node.DisplayName;
        }
        private void SensorTreeNodeHyperlink_Click(object sender, RoutedEventArgs e)
        {
            Hyperlink               link   = sender as Hyperlink;
            SensorTreeNode          node   = link.DataContext as SensorTreeNode;
            WindowDisplayNameEditor window = new WindowDisplayNameEditor(node);

            window.ShowDialog();
        }
        private void ButtonCancel_Click(object sender, RoutedEventArgs e)
        {
            SensorTreeNode node = this.DataContext as SensorTreeNode;

            node.DisplayName = originalDisplayName;

            this.DialogResult = false;
            this.Close();
        }
        private void ButtonReset_Click(object sender, RoutedEventArgs e)
        {
            SensorTreeNode node = this.DataContext as SensorTreeNode;

            node.DisplayName = node.Name;
        }