コード例 #1
0
 /// <summary>
 /// Save Code As Image
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SaveCodeClick(object sender, EventArgs e)
 {
     if (codeDisplay.Image != null)
     {
         string path = FileIOHelper.GetSaveImageFilePath();
         if (path != "")
         {
             codeDisplay.Image.Save(path, ImageFormat.Png);
         }
     }
     else
     {
         MessageBox.Show("There Is No Code. Please Enter Content And Press Genenerate", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         contentInput.Focus();
     }
 }