예제 #1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Refreshes the history pane using the check from the specified node. If the
		/// specified node is null, then the currently selected node in the tree is chosen. If
		/// there is no current node or the current node isn't a check (e.g. the "Basic" node)
		/// then the history pane shows nothing.
		/// </summary>
		/// ------------------------------------------------------------------------------------
		private void RefreshHistoryPane(ScrChkTreeNode currNode)
		{
			if (currNode == null)
				currNode = m_availableChecksTree.SelectedNode as ScrChkTreeNode;

			if (currNode == null)
			{
				lblCheckName.Text = string.Empty;
				txtHistory.Text = string.Empty;
				return;
			}

			lblCheckName.Text = InstalledScriptureChecks.GetCheckProperty(ScrFdoResources.ResourceManager,
				currNode.ScrCheck.CheckId, "Name", currNode.ScrCheck.CheckName);

			StringBuilder bldr = new StringBuilder();
			foreach (string bookRunInfo in currNode.TipBookList)
				bldr.AppendLine(bookRunInfo);

			txtHistory.Text = bldr.ToString();
			AdjustCheckNameDisplayRectangle();
		}
예제 #2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Keep track of the node on which the user has right clicked
		/// </summary>
		/// ------------------------------------------------------------------------------------
		private void m_availableChecksTree_MouseDown(object sender, MouseEventArgs e)
		{
			if (e.Button == MouseButtons.Right)
			{
				TreeViewHitTestInfo tvhti = m_availableChecksTree.HitTest(e.Location);
				m_nodeLastRightClickedOn = tvhti.Node as ScrChkTreeNode;
			}
		}