SendToNotes() public method

public SendToNotes ( String strNote ) : void
strNote String
return void
Ejemplo n.º 1
0
        private void cmdSendToNotes_Click(object sender, EventArgs e)
        {
            StringBuilder strNote = new StringBuilder();

            if (lstResults.SelectedItems.Count == 0)
            {
                return;
            }

            for (int intCount = 0; intCount < lstResults.SelectedItems.Count; intCount++)
            {
                strNote.Append(lstResults.SelectedItems[intCount].SubItems[0].Text + "\\" + lstResults.SelectedItems[intCount].SubItems[1].Text + ":" + lstResults.SelectedItems[intCount].SubItems[3].Text + " - " + lstResults.SelectedItems[intCount].SubItems[4].Text.Trim() + Environment.NewLine);
            }
            frmMaster.SendToNotes(strNote.ToString());
        }
Ejemplo n.º 2
0
        private void cmdSendFileNamePathToNotes_Click(object sender, EventArgs e)
        {
            StringBuilder strNote = new StringBuilder();
            string        strTmp  = this.Text.Substring(this.Text.IndexOf("-") + 1).TrimStart();

            strNote.Append(strTmp + Environment.NewLine);
            frmMaster.SendToNotes(strNote.ToString());
        }
Ejemplo n.º 3
0
        private void cmdSendFilenameAndPathToNotes_Click(object sender, EventArgs e)
        {
            StringBuilder sbTemp = new StringBuilder();

            if (treeFiles.SelectedNode == null)
            {
                return;
            }

            sbTemp.Append(treeFiles.SelectedNode.Text);
            TreeNode treeNodeTmp = treeFiles.SelectedNode;

            while (true)
            {
                if (treeNodeTmp.Parent == null)
                {
                    break;
                }
                treeNodeTmp = treeNodeTmp.Parent;
                sbTemp.Insert(0, treeNodeTmp.Text + "\\");
            }

            frmMaster.SendToNotes(sbTemp.ToString());
        }