public bool ReceivedPurchaseOrderIsSelected() { if (RetreivedRecordsLedger.Count > 0 && RetreivedRecordsLedgerSelectedIndex > -1) { return(true); } SelectedPurchaseOrderReceivedBatches.Clear(); NotifyPropertyChanged("SelectedPurchaseOrderReceivedBatches"); return(false); }
void SelectFirstLedgerRecordIfAvailable() { if (RetreivedRecordsLedger.Count > 0) { RetreivedRecordsLedgerSelectedIndex = 0; PopulateSelectedPurchaseOrderBatchCollection(); return; } SelectedPurchaseOrderReceivedBatches.Clear(); }