ATMLCommonLibrary.controls.lists.PhysicalInterfaceListControl.btnDeleteConnector_Click C# (CSharp) 메소드

btnDeleteConnector_Click() 개인적인 메소드

private btnDeleteConnector_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
리턴 void
        private void btnDeleteConnector_Click(object sender, EventArgs e)
        {
            if (lvConnectors.SelectedItems.Count > 0)
            {
                var connector = (Connector)lvConnectors.SelectedItems[0].Tag;
                if( DialogResult.Yes == MessageBox.Show( string.Format("Delete connector \"{0}\"?", connector.ID ),
                                                         Resources.V_E_R_I_F_Y,
                                                         MessageBoxButtons.YesNo,
                                                         MessageBoxIcon.Question ))
                {
                    ListViewItem item = lvConnectors.SelectedItems[0];
                    item.Remove();
                };
            }
        }