Esempio n. 1
0
        private void fromTDUGenuineEditorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Click on Import > from TDU Editor button
            try
            {
                Cursor = Cursors.WaitCursor;

                EditorTracksDialog dlg = new EditorTracksDialog(true);
                DialogResult       dr  = dlg.ShowDialog(this);

                if (dr == DialogResult.OK)
                {
                    Couple <int> convertedCount = _ConvertIGEtoDFE(dlg.SelectedTracks);

                    // Refresh custom tracks
                    _RefreshCustomList();

                    string message = string.Format(_FORMAT_IMPORT_IGE_OK, convertedCount.FirstValue, convertedCount.SecondValue);

                    StatusBarLogManager.ShowEvent(this, message);
                }
            }
            catch (Exception ex)
            {
                MessageBoxes.ShowError(this, ex);
            }
            finally
            {
                Cursor = Cursors.Default;
            }
        }
Esempio n. 2
0
        private void tDUEditorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Click on Display editor challenges button
            try
            {
                Cursor = Cursors.WaitCursor;

                EditorTracksDialog dlg = new EditorTracksDialog(false);

                // Non modal window to always keep an eye
                dlg.Show(this);
            }
            catch (Exception ex)
            {
                MessageBoxes.ShowError(this, ex);
            }
            finally
            {
                Cursor = Cursors.Default;
            }
        }