FRBDK/Glue/ParticleEditorPlugin/ParticleEditorPlugin/Form1.cs
/// <summary>
/// Make sure the user is okay with potentially losing changes.
/// Usually called when loading or creating a new particle list
/// before old list is unloaded.
/// </summary>
/// <returns>True if user is okay with losing changes.</returns>
Make sure the user is okay with potentially losing changes.
Usually called when loading or creating a new particle list
before old list is unloaded.
Make sure the user is okay with potentially losing changes . Usually called when loading or creating a new particle list before old list is unloaded .
private bool ConfirmLosingChanges()
        {
            if (!string.IsNullOrEmpty(fileName))
            {
                if (MessageBox.Show("Are you sure you want to open a new file? Unsaved changes will be lost!", "Confirm New", MessageBoxButtons.YesNo) != System.Windows.Forms.DialogResult.Yes)
                {
                    return false;
                }
            }
            return true;
        }
private bool ConfirmLosingChanges ( ) { if ( ! string . IsNullOrEmpty ( fileName ) ) { if ( MessageBox . Show ( " " , " " , MessageBoxButtons . YesNo ) != System . Windows . Forms . DialogResult . Yes ) { return false ; } } return true ; }
Make sure the user is okay with potentially losing changes.
Make sure the user is okay with potentially losing changes .
True if user is okay with losing changes.
True if user is okay with losing changes .