Exemplo n.º 1
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;
        }
Exemplo n.º 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;
        }
 public FirstTimeRunDialogView(IPresentationResourceService resources) {
     _resources = resources;
     InitializeComponent();
 }
Exemplo n.º 4
0
 public FirstTimeRunDialogView(IPresentationResourceService resources)
 {
     _resources = resources;
     InitializeComponent();
 }