Beispiel #1
0
        public override void Launch()
        {
            var asmPath = Assembly.GetEntryAssembly().Location;
            var name    = Path.GetFileNameWithoutExtension(asmPath);

            using (var s = File.OpenRead(PathHelper.GetExecutingPath(name + ".xml")))
            {
                Config = XmlObject.Deserialize <TConfig>(s);
            }

            base.Launch();
        }