Пример #1
0
        /// <summary>
        /// Converts a file from version 1 to version 2.
        /// </summary>
        private void ConvertOperation()
        {
            try
            {
                _document.Convert();

                convertToolStripMenuItem.Enabled = false;
                convertToolStripButton.Enabled   = false;

                documentStatusLabel.Text = "File converted";
            }
            catch (Exception e)
            {
#if DEBUG
                Trace.WriteLine("Exception thrown when trying ConvertOperation(): " + e, "Error");
#endif

                MessageBox.Show(this, "Unable to convert.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }