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;
        }
Exemple #2
0
        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;
        }
Exemple #3
0
 void Window_Loaded(object sender, RoutedEventArgs e)
 {
     using (var stream = _resources.GetResource("" + "tos.rtf"))
         licenseRTB.Selection.Load(stream, DataFormats.Rtf);
 }