コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: orf53975/GySurface
        private void _Close()
        {
            var services = ExBuilder.GetServices();

            foreach (var service in services)
            {
                service.Stop();
            }
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: orf53975/GySurface
        private void Initialize()
        {
            Dictionary <string, string> theme = new Dictionary <string, string>();

            theme.Add("Accent", "");
            theme.Add("Theme", "");
            ExContext.Instance.Configuration.Add("Style", theme);

            ExContext.Instance.Configuration.CollectionChanged += Application_CollectionChanged;


            var services = ExBuilder.GetServices();

            foreach (var service in services)
            {
                try
                {
                    service.Start();
                }
                catch
                {
                }
            }
        }