ATMLCommonLibrary.forms.ATMLLibraryForm.ATMLLibraryForm_FormClosing C# (CSharp) Method

ATMLLibraryForm_FormClosing() private method

private ATMLLibraryForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
sender object
e System.Windows.Forms.FormClosingEventArgs
return void
        private void ATMLLibraryForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (Modal && DialogResult == DialogResult.OK)
            {
                if (!_listControl.HasSelected)
                {
                    MessageBox.Show(
                        @"Please select a UUT. If the UUT description you need does not exist, please create one first.");
                    e.Cancel = true;
                }
            }
        }