Exemplo n.º 1
0
 private void openTSMI_Click(object sender, EventArgs e)
 {
     try
     {
         InstructionSetComponent obj = new InstructionSetSystem.InstructionSetComponent();
         rtbDisplay.LoadFile(obj.Open(), RichTextBoxStreamType.RichText);
     }
     catch (Exception errorMsg)
     {
         MessageBox.Show(errorMsg.Message);
     }
 }
Exemplo n.º 2
0
 private void saveTSMI_Click(object sender, EventArgs e)
 {
     try
     {
         InstructionSetComponent obj = new InstructionSetSystem.InstructionSetComponent();
         obj.Save(rtbDisplay);
         MessageBox.Show("File Saved Sucessfully");
     }
     catch (Exception errorMsg)
     {
         MessageBox.Show(errorMsg.Message);
     }
 }
Exemplo n.º 3
0
 private void legalTxtMenu_Click(object sender, EventArgs e)
 {
     instructionTxtMenu.Checked = false;
     // Italics Text
     try
     {
         InstructionSetComponent obj = new InstructionSetSystem.InstructionSetComponent();
         obj.LegalTextBlock(rtbDisplay, legalTxtMenu);
     }
     catch (Exception errorMsg)
     {
         MessageBox.Show(errorMsg.Message);
     }
 }
Exemplo n.º 4
0
 private void instructionTxtMenu_Click(object sender, EventArgs e)
 {
     legalTxtMenu.Checked = false;
     // Instruction Text Block (Number List and Bold Text)
     try
     {
         InstructionSetComponent obj = new InstructionSetSystem.InstructionSetComponent();
         obj.InstructionTextBlock(rtbDisplay, instructionTxtMenu);
     }
     catch (Exception errorMsg)
     {
         MessageBox.Show(errorMsg.Message);
     }
 }