private void getRequests(int storeId) { StockMessageFormulation requests = new StockMessageFormulation(); ListBox recievedRequests = requests.getAllMessages(1, storeId); //Display all formulated Requests. //Spacings were added between each item for the sake of readability. foreach (var item in recievedRequests.Items) { MessageListBox.Items.Add(item); MessageListBox.Items.Add(""); } }
private void getMessages() { StockMessageFormulation messages = new StockMessageFormulation(); //0 is input as the 2nd parameter as it refers to the store Id, which is not required when requesting //manager messages from this class, only when requesting messages to send to central. ListBox recievedMessages = messages.getAllMessages(0, 0); //Display all recieved formulated messages. //Spacings were added between each item for the sake of readability. foreach (var item in recievedMessages.Items) { MessageListBox.Items.Add(item); MessageListBox.Items.Add(""); } }