public MainWindow() { InitializeComponent(); DataContext = this; ApiConfiguration.Set(ApiConfiguration.Read()); }
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(); }
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; }
private void ApiMonitor_ApiConfigurationChanged(ApiConfiguration config) { ApiConfiguration.Set(config); Login(); }