private void underlineTSMI_Click(object sender, EventArgs e)
 {
     try
     {
         ExtendedTextBlock obj = new ExtendedTextBlock(new InstructionSetComponent());
         obj.UnderlineText(rtbDisplay, underlineTSMI);
     }
     catch (Exception errorMsg)
     {
         MessageBox.Show(errorMsg.Message);
     }
 }
 private void backgroundColourTSMI_Click(object sender, EventArgs e)
 {
     try
     {
         ExtendedTextBlock obj = new ExtendedTextBlock(new InstructionSetComponent());
         obj.BackgroundColor(rtbDisplay, backgroundColourTSMI);
     }
     catch (Exception errorMsg)
     {
         MessageBox.Show(errorMsg.Message);
     }
 }