/// <summary> /// Sets the MIDI details. /// </summary> /// <param name="selectedRow">The selected row.</param> private void SetMIDIDetails(F25055PropertyHeaderData.GetPersonalPropertyDetailRow selectedRow) { if (!selectedRow.IsMIDLabel1Null()) { if (selectedRow.MIDLabel1.Trim().EndsWith(":") || string.IsNullOrEmpty(selectedRow.MIDLabel1.Trim())) { this.MID1label.Text = selectedRow.MIDLabel1.Trim(); } else { this.MID1label.Text = selectedRow.MIDLabel1.Trim() + ":"; } } else { this.MID1label.Text = string.Empty; } if (!selectedRow.IsMID1Null()) { this.MID1TextBox.Text = selectedRow.MID1; } else { this.MID1TextBox.Text = string.Empty; } if (!selectedRow.IsMIDLabel2Null()) { if (selectedRow.MIDLabel2.Trim().EndsWith(":") || string.IsNullOrEmpty(selectedRow.MIDLabel2.Trim())) { this.MID2label.Text = selectedRow.MIDLabel2.Trim(); } else { this.MID2label.Text = selectedRow.MIDLabel2.Trim() + ":"; } } else { this.MID2label.Text = string.Empty; } if (!selectedRow.IsMID2Null()) { this.MID2TextBox.Text = selectedRow.MID2; } else { this.MID2TextBox.Text = string.Empty; } if (!selectedRow.IsMIDLabel3Null()) { if (selectedRow.MIDLabel3.Trim().EndsWith(":") || string.IsNullOrEmpty(selectedRow.MIDLabel3.Trim())) { this.MID3label.Text = selectedRow.MIDLabel3.Trim(); } else { this.MID3label.Text = selectedRow.MIDLabel3.Trim() + ":"; } } else { this.MID3label.Text = string.Empty; } if (!selectedRow.IsMID3Null()) { this.MID3TextBox.Text = selectedRow.MID3; } else { this.MID3TextBox.Text = string.Empty; } if (!selectedRow.IsMIDLabel4Null()) { if (selectedRow.MIDLabel4.Trim().EndsWith(":") || string.IsNullOrEmpty(selectedRow.MIDLabel4.Trim())) { this.MID4label.Text = selectedRow.MIDLabel4.Trim(); } else { this.MID4label.Text = selectedRow.MIDLabel4.Trim() + ":"; } } else { this.MID4label.Text = string.Empty; } if (!selectedRow.IsMID4Null()) { this.MID4TextBox.Text = selectedRow.MID4; } else { this.MID4TextBox.Text = string.Empty; } if (!selectedRow.IsMIDLabel5Null()) { if (selectedRow.MIDLabel5.Trim().EndsWith(":") || string.IsNullOrEmpty(selectedRow.MIDLabel5.Trim())) { this.MID5label.Text = selectedRow.MIDLabel5.Trim(); } else { this.MID5label.Text = selectedRow.MIDLabel5.Trim() + ":"; } } else { this.MID5label.Text = string.Empty; } if (!selectedRow.IsMID5Null()) { this.MID5TextBox.Text = selectedRow.MID5; } else { this.MID5TextBox.Text = string.Empty; } if (!selectedRow.IsO1ValueNull()) { this.FairCashTextBox.Text = selectedRow.O1Value.ToString(); } else { this.FairCashTextBox.Text = string.Empty; } if (!selectedRow.IsO2ValueNull()) { this.CappedValueTextBox.Text = selectedRow.O2Value.ToString(); } else { this.CappedValueTextBox.Text = string.Empty; } if (!selectedRow.IsO3ValueNull()) { this.AssessedValueTextBox.Text = selectedRow.O3Value.ToString(); } else { this.AssessedValueTextBox.Text = string.Empty; } }