Nanook.QueenBee.EditorForm.tabs_Deselecting C# (CSharp) Method

tabs_Deselecting() private method

private tabs_Deselecting ( object sender, TabControlCancelEventArgs e ) : void
sender object
e TabControlCancelEventArgs
return void
        private void tabs_Deselecting(object sender, TabControlCancelEventArgs e)
        {
            if (e.TabPage == tabQb && btnSavePak.Enabled)
            {
                if (MessageBox.Show(this,
                    string.Format("You have not saved changes to the PAK file.{0}{0}Are you sure you want to leave this tab?", Environment.NewLine),
                    "Question", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel)
                    e.Cancel = true;
            }
        }
EditorForm