//Populate the new request line with values public void populateRequestForm() { BuildLine(); //Set up the grid content of the follow up form PopulateLine(); //Set up default values of the follow up contents //Set up default shift properties request = new Request(init, init, init, init, init, init, init, init, init, init); requestline = new RequestLine(); RowDefinition sectorRowDefinition = new RowDefinition(); sectorRowDefinition.Height = new GridLength(40); followupPage.getRequestGrid().RowDefinitions.Add(sectorRowDefinition); //populate time followupPage.getRequestGrid().Children.Add(this.getTimeBorder()); Grid.SetColumn(this.getTimeBorder(), 0); Grid.SetRow(this.getTimeBorder(), rowNumber); timestampMap.Add("Time" + rowNumber, TextBoxHandler.textboxArray(this.getTimeHHTextBox(), this.getTimeMMTextBox())); //populate client followupPage.getRequestGrid().Children.Add(this.getClientNameTextBox()); Grid.SetColumn(this.getClientNameBorder(), 1); Grid.SetRow(this.getClientNameBorder(), rowNumber); Grid.SetColumn(this.getClientNameTextBox(), 1); Grid.SetRow(this.getClientNameTextBox(), rowNumber); clientMap.Add("Client" + rowNumber, this.getClientNameTextBox()); //populate recipient followupPage.getRequestGrid().Children.Add(this.getRecipientNameTextBox()); Grid.SetColumn(this.getRecipientNameBorder(), 2); Grid.SetRow(this.getRecipientNameBorder(), rowNumber); Grid.SetColumn(this.getRecipientNameTextBox(), 2); Grid.SetRow(this.getRecipientNameTextBox(), rowNumber); recipientMap.Add("Recipient" + rowNumber, this.getRecipientNameTextBox()); //populate request followupPage.getRequestGrid().Children.Add(this.getRequestNameTextBox()); Grid.SetColumn(this.getRequestNameBorder(), 3); Grid.SetRow(this.getRequestNameBorder(), rowNumber); Grid.SetColumn(this.getRequestNameTextBox(), 3); Grid.SetRow(this.getRequestNameTextBox(), rowNumber); requestMap.Add("Request" + rowNumber, this.getRequestNameTextBox()); //populate handled by followupPage.getRequestGrid().Children.Add(this.getHandledByNameTextBox()); Grid.SetColumn(this.getHandledByNameBorder(), 4); Grid.SetRow(this.getHandledByNameBorder(), rowNumber); Grid.SetColumn(this.getHandledByNameTextBox(), 4); Grid.SetRow(this.getHandledByNameTextBox(), rowNumber); handledbyMap.Add("HandledBy" + rowNumber, this.getHandledByNameTextBox()); //populate follow up followupPage.getRequestGrid().Children.Add(this.getFollowUpBorder()); Grid.SetColumn(this.getFollowUpBorder(), 5); Grid.SetRow(this.getFollowUpBorder(), rowNumber); followupTimestampMap.Add("FollowUpTimestamp" + rowNumber, TextBoxHandler.textboxArray(this.getFollowUpHHTextBox(), this.getFollowUpMMTextBox())); //populate completion followupPage.getRequestGrid().Children.Add(this.getCompletionBorder()); Grid.SetColumn(this.getCompletionBorder(), 6); Grid.SetRow(this.getCompletionBorder(), rowNumber); completionTimestampMap.Add("CompletionTimestamp" + rowNumber, TextBoxHandler.textboxArray(this.getCompletionHHTextBox(), this.getCompletionMMTextBox())); requestLineList.Add(this); }