コード例 #1
0
        private void TreeViewItemOnMouseRightButtonUp(object sender, MouseButtonEventArgs e)
        {
            // TODO: Get Node From Sender ????
            XmlNode selectedNode = TreeViewController.GetNAntNode(NAntTreeView.SelectedItem as TreeViewItem);

            _viewController.CurrentNode = selectedNode;
        }
コード例 #2
0
        private void TreeViewItemOnMouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            // TODO: Get Node From Sender ????
            XmlNode selectedNode = TreeViewController.GetNAntNode(NAntTreeView.SelectedItem as TreeViewItem);

            _viewController.CurrentNode = selectedNode;

            if (TreeViewController.IsNAntTarget(NAntTreeView.SelectedItem as TreeViewItem))
            {
                Start_Click(sender, e);
            }
            else
            {
                // TODO Open Nant File at property position
            }
        }
コード例 #3
0
        private void TreeViewItemOnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            // TODO: Get Node From Sender ????
            // Get the selected node
            XmlNode selectedNode = TreeViewController.GetNAntNode(NAntTreeView.SelectedItem as TreeViewItem);

            _viewController.CurrentNode = selectedNode;

            /*
             * // Check if node can be display in property pane
             * if (selectedNode != null)
             *  m_ItemProperties.SelectedObject = _viewController.CurrentNode.Descriptor;
             * else
             *  m_ItemProperties.SelectedObject = null;
             */


            // Refresh button
            RefreshView();
        }