public Licenses(IPresentationResourceService resourceService) { string[] licenses; using (var stream = resourceService.GetResource("applicenses.applicenses.lst") ) using (var reader = new StreamReader(stream)) licenses = reader.ReadToEnd().Split(new[] {"\r\n", "\n"}, StringSplitOptions.None); var result = ""; foreach (var resource in licenses) { using (var stream = resourceService.GetResource("applicenses." + resource)) using (var reader = new StreamReader(stream)) result = result + reader.ReadToEnd() + "\n\n\n"; } LicenseText = result; }
public Licenses(IPresentationResourceService resourceService) { string[] licenses; using (var stream = resourceService.GetResource("applicenses.applicenses.lst") ) using (var reader = new StreamReader(stream)) licenses = reader.ReadToEnd().Split(new[] { "\r\n", "\n" }, StringSplitOptions.None); var result = ""; foreach (var resource in licenses) { using (var stream = resourceService.GetResource("applicenses." + resource)) using (var reader = new StreamReader(stream)) result = result + reader.ReadToEnd() + "\n\n\n"; } LicenseText = result; }
public FirstTimeRunDialogView(IPresentationResourceService resources) { _resources = resources; InitializeComponent(); }