private void DisplayDetailsOfSelected() { var selectedAssetTag = ScanItemsGrid.CurrentRowStringValue(MunisFixedAssetTable.Asset); if (!string.IsNullOrEmpty(selectedAssetTag)) { using (var detailData = controller.DetailOfAsset(selectedAssetTag)) { PopulateControls(detailData); } } }
private void SetupContextMenu() { var selectedStatus = ScanItemsGrid.CurrentRowStringValue(ScanItemsTable.ScanStatus); if (string.IsNullOrEmpty(selectedStatus)) { ResolveDupMenuItem.Enabled = false; } else { if (selectedStatus == ScanStatus.Duplicate.ToString()) { ResolveDupMenuItem.Enabled = true; } else { ResolveDupMenuItem.Enabled = false; } } }