Win.CodeNavi.frmMain.SendToNotes C# (CSharp) Method

SendToNotes() public method

public SendToNotes ( String strNote ) : void
strNote String
return void
        public void SendToNotes(String strNote)
        {
            if (this.InvokeRequired)
            {
                this.Invoke(new MethodInvoker(() => { SendToNotes(strNote); }));
            }
            else
            {
                if (tabNotes.Visible == false)
                {
                    tabNotes.Visible = true;
                    cmdshowNotesPanel.Checked = true;
                    tabNotes.SelectTab(0);
                    Properties.Settings.Default.ShowNotesPanel = true;
                    Properties.Settings.Default.Save();
                }

                Properties.Settings.Default.Save();
                String strNoteFinal = DateTime.Now + Environment.NewLine + "----------------------------------------------" + Environment.NewLine + Environment.NewLine + strNote + Environment.NewLine + Environment.NewLine;

                richNotes.Text = strNoteFinal + richNotes.Text;
            }
        }

Usage Example

コード例 #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());
        }
All Usage Examples Of Win.CodeNavi.frmMain::SendToNotes