private void TreeViewItemOnMouseRightButtonUp(object sender, MouseButtonEventArgs e) { // TODO: Get Node From Sender ???? XmlNode selectedNode = TreeViewController.GetNAntNode(NAntTreeView.SelectedItem as TreeViewItem); _viewController.CurrentNode = selectedNode; }
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 } }
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(); }