ATMLCommonLibrary.controls.switching.SwitchControl.lvInterface_OnEdit C# (CSharp) Method

lvInterface_OnEdit() private method

private lvInterface_OnEdit ( ) : void
return void
        private void lvInterface_OnEdit()
        {
            if (lvInterface.HasSelected)
            {
                var form = new PortForm {Port = lvInterface.SelectedItems[0].Tag as Port};
                if (DialogResult.OK == form.ShowDialog())
                {
                    Port port = form.Port;
                    lvInterface.SelectedItems[0].Tag = port;
                    lvInterface.SelectedItems[0].SubItems[0].Text = port.ToString();
                }
            }
        }