Forex_Strategy_Builder.Edit_Translation.Actions_FormClosing C# (CSharp) Method

Actions_FormClosing() static private method

Check whether the strategy have been changed.
static private Actions_FormClosing ( object sender, FormClosingEventArgs e ) : void
sender object
e System.Windows.Forms.FormClosingEventArgs
return void
        void Actions_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (isTranslChanged && Configs.Language != "English")
            {
                DialogResult dr = MessageBox.Show(Language.T("Do you want to accept the changes?"),
                    Data.ProgramName, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);

                if (dr == DialogResult.Cancel)
                {
                    e.Cancel = true;
                }
                else if (dr == DialogResult.Yes)
                {
                    SaveTranslation();
                    Close();
                }
                else if (dr == DialogResult.No)
                {
                    isTranslChanged = false;
                    Close();
                }
            }

            return;
        }