Example #1
0
        private void DisplayDetailsOfSelected()
        {
            var selectedAssetTag = ScanItemsGrid.CurrentRowStringValue(MunisFixedAssetTable.Asset);

            if (!string.IsNullOrEmpty(selectedAssetTag))
            {
                using (var detailData = controller.DetailOfAsset(selectedAssetTag))
                {
                    PopulateControls(detailData);
                }
            }
        }
Example #2
0
        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;
                }
            }
        }