コード例 #1
0
 private void menuItemSave_Click(object sender, EventArgs e)
 {
     if (DialogResult.OK == saveFileDialog.ShowDialog())
     {
         m_ImageHandler.SaveBitmap(saveFileDialog.FileName);
     }
 }
コード例 #2
0
 private void onImageClose(object sender, EventArgs e)
 {
     m_SaveFileDialog = new SaveFileDialog
     {
         RestoreDirectory = true,
         InitialDirectory = Constants.InitialDirectory,
         FilterIndex      = 1,
         Filter           = Constants.FilterString
     };
     if (DialogResult.OK == m_SaveFileDialog.ShowDialog())
     {
         m_ImageHandler.SaveBitmap(m_SaveFileDialog.FileName);
     }
     m_ImageHandler.BitmapPath      = null;
     m_ImageHandler.OriginalBitmap  = null;
     m_ImageHandler.CurrentBitmap   = null;
     m_ImageHandler.undoButtonStack = null;
 }