示例#1
0
        public MainWindow()
        {
            InitializeComponent();
            DataContext = this;

            ApiConfiguration.Set(ApiConfiguration.Read());
        }
示例#2
0
        public void init()
        {
            UpdateUserSettings();

            // Set Animation Framerate
            Timeline.DesiredFrameRateProperty.OverrideMetadata(typeof(Timeline), new FrameworkPropertyMetadata {
                DefaultValue = DEFAULT_ANIMATION_FRAMERATE
            });

            Splash_Initialize();

            Splash_UpdateStatus("...Initializing", 10);

            FileLocations.CreateAllDirectories();

            ApiConfiguration.Set(ApiConfiguration.Read());

            InitializeComponent();
            DataContext = this;

            Application.Current.MainWindow = this;

            DeviceManager_DeviceList_Initialize();

            // Read Users and Login
            Splash_UpdateStatus("...Logging in User", 40);
            Users_Initialize();

            Splash_UpdateStatus("...Loading Plugins", 60);
            LoadPlugins();
            Pages.DeviceManager.EditPage.GetPluginPageInfos();

            Splash_UpdateStatus("...Finishing Up", 100);

            AddWelcomeMessage();
            CheckVersion();

            Splash_Close();

            ServerMonitor_Initialize();
        }
示例#3
0
        public ProcessingServer()
        {
            // Insure all standard TrakHound directories are created
            FileLocations.CreateAllDirectories();

            // Read the API Configuration file
            ApiConfiguration.Set(ApiConfiguration.Read());

            // Read Server Plugins
            LoadServerPlugins();

            // Start User login file monitor
            var loginMonitor = new ServerCredentials.Monitor();

            loginMonitor.UserChanged += LoginMonitor_UserChanged;

            // Start API Configuration file monitor
            var apiMonitor = new ApiConfiguration.Monitor();

            apiMonitor.ApiConfigurationChanged += ApiMonitor_ApiConfigurationChanged;
        }
示例#4
0
 private void ApiMonitor_ApiConfigurationChanged(ApiConfiguration config)
 {
     ApiConfiguration.Set(config);
     Login();
 }