예제 #1
0
 protected override void OnClosing(CancelEventArgs e)
 {
     if (!isSave && ConvertedImage.Image != null)
     {
         if (MessageBox.Show("是否保存文件后再退出", "当前文件未保存", MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             Bitmap Bit = PictureProcessing.GetBit(ConvertedImage.Size, ConvertedImage.PointToScreen(new Point(0, 0)));
             PictureProcessing.SaveFile(saveImageDialog.ShowDialog() == DialogResult.OK, saveImageDialog.FileName, Bit, out isSave);
         }
         else
         {
             isSave = true;
         }
     }
 }
예제 #2
0
        private void 另存为AToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap Bit = PictureProcessing.GetBit(ConvertedImage.Size, ConvertedImage.PointToScreen(new Point(0, 0)));

            PictureProcessing.SaveFile(saveImageDialog.ShowDialog() == DialogResult.OK, saveImageDialog.FileName, Bit, out isSave);
        }