private void menuItemSave_Click(object sender, EventArgs e) { if (DialogResult.OK == saveFileDialog.ShowDialog()) { m_ImageHandler.SaveBitmap(saveFileDialog.FileName); } }
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; }