コード例 #1
0
        public void SaveFileRequest_Handler(object sender, FileIOEventArgs e)
        {
            try
            {
                TheEditor.SaveFile(e.Path);
            }
            catch (Exception ex)
            {
                Log.Exception(ex);
                ShowException(ex, "The file could not be saved.");
                SetTimedStatusText("Error saving file.", duration: 10);

#if !DEBUG
                return;
#else
                throw;
#endif
            }
        }