ATMLCommonLibrary.controls.switching.MatrixSwitchControl.DeleteMatrixPort C# (CSharp) Method

DeleteMatrixPort() private method

private DeleteMatrixPort ( lists listView ) : void
listView lists
return void
        private void DeleteMatrixPort(lists.ATMLListControl listView)
        {
            if (listView.SelectedItems.Count > 0)
            {
                MatrixPort port = (MatrixPort)listView.SelectedItems[0].Tag;
                String prompt = String.Format(MessageManager.getMessage("Generic.delete.prompt"), "matrix port", port.name);
                String title = MessageManager.getMessage("Generic.title.verification");
                if (DialogResult.Yes == MessageBox.Show(prompt,
                                                         title,
                                                         MessageBoxButtons.YesNo,
                                                         MessageBoxIcon.Question))
                {
                    listView.SelectedItems[0].Remove();
                }

            }
        }