ArgusTV.Recorder.MediaPortalTvServer.SetupForm.EnableUncButtons C# (CSharp) Method

EnableUncButtons() private method

private EnableUncButtons ( ) : void
return void
        private void EnableUncButtons()
        {
            if (_uncPathsDataGridView.SelectedRows.Count > 0)
            {
                UncPathItem linkItem = _uncPathsDataGridView.SelectedRows[0].DataBoundItem as UncPathItem;
                _createUncShareButton.Enabled = linkItem.HasError;
            }
            else
            {
                _createUncShareButton.Enabled = false;
            }
            if (_uncTimeshiftingDataGridView.SelectedRows.Count > 0)
            {
                UncPathItem linkItem = _uncTimeshiftingDataGridView.SelectedRows[0].DataBoundItem as UncPathItem;
                _createTimeshiftingShareButton.Enabled = linkItem.HasError;
            }
            else
            {
                _createTimeshiftingShareButton.Enabled = false;
            }
        }