void HandleDoubleClick(object sender, EventArgs e) { if (ListOfEvents.SelectedItem != null) { GenericTextForm TextForm = new GenericTextForm(); TextForm.GetRichTextBox().Text = ((Transactions.TransactionBase)ListOfEvents.SelectedItem).ExpandedDescription(); TextForm.ShowDialog(); } }
/// We display the NOTE associated with the doubleclicked selected object void DisplayNote() { // NewMessage.Show ("here0"); if (PreviousSubmissions.SelectedItem != null) { //NewMessage.Show ("here"); string rtf_Notes = ((Transactions.TransactionSubmission)PreviousSubmissions.SelectedItem).Notes; // NewMessage.Show (rtf_Notes); if (rtf_Notes != null && rtf_Notes!= Constants.BLANK) { GenericTextForm form = new GenericTextForm(); try { form.GetRichTextBox().Rtf = rtf_Notes; } catch (Exception) { form.GetRichTextBox().Text = rtf_Notes; } form.ShowDialog(); } } }