示例#1
0
        private void menuSaveAs_Click(object sender, EventArgs e)
        {
            if (mySaveDialog.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    _file.SaveAs(mySaveDialog.FileName);
                    Text = string.Format("ARDUBOY Art Studio - {0}", _file.Name);
                }
                catch (Exception ex)
                {
                    MessageBox.Show("The file could not be saved");
#if DEBUG
                    Debug.WriteLine(ex.ToString());
#endif
                }
            }
        }