showText() public method

public showText ( string text ) : void
text string
return void
示例#1
0
 private void showDebugInfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (design != null)
     {
         try
         {
             frmTextbox theform = new frmTextbox();
             theform.showText(design.getDebugInfo());
         }
         catch (Exception ex)
         {
             MessageBox.Show(translation.GetTranslatedString(Translation.StringID.ERROR_DEBUG) + // "There was an error while saving debug info:"
                             Environment.NewLine + ex.ToString());
         }
     }
     else
     {
         MessageBox.Show(translation.GetTranslatedString(Translation.StringID.NO_DESIGN)); // "No design loaded."
     }
 }
示例#2
0
 private void showDebugInfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (design != null)
     {
         try
         {
             frmTextbox theform = new frmTextbox();
             theform.showText(design.getDebugInfo());
         }
         catch (Exception ex)
         {
             MessageBox.Show(translation.GetTranslatedString(Translation.StringID.ERROR_DEBUG) + // "There was an error while saving debug info:"
                 Environment.NewLine + ex.ToString());
         }
     }
     else
     {
         MessageBox.Show(translation.GetTranslatedString(Translation.StringID.NO_DESIGN)); // "No design loaded."
     }
 }
 private void showDebugInfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (design != null)
     {
         try
         {
             frmTextbox theform = new frmTextbox();
             theform.showText(design.getDebugInfo());
         }
         catch (Exception ex)
         {
             MessageBox.Show("There was an error while saving debug info:" + Environment.NewLine + ex.ToString());
         }
     }
     else
     {
         MessageBox.Show("No design loaded.");
     }
 }