示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         HeaderInformation  = "";
         HeaderInformation += "Nom du scénario: " + mySce.ScenarioCode + "\n";
         HeaderInformation += "Season: " + clsSilex.GetNameSeason(mySea.SXSeasonID) + "\n";
         HeaderInformation += "Date: " + DateTime.Now.ToLongDateString() + "\n";
         clsPrint myPrint = new clsPrint(dgvResult, HeaderInformation);
         myPrint.PrintForm();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }