/// <summary> /// Constructor /// </summary> public OptionsForm() { InitializeComponent(); // Create a new XMDS this.xmds = new xmds.xmds(); this.xmds.RegisterDisplayCompleted += Xmds_RegisterDisplayCompleted; // Create a Hardware key this.hardwareKey = new HardwareKey(); // Set the fields up with the current settings // Settings Tab textBoxCmsAddress.Text = ApplicationSettings.Default.ServerUri; textBoxCmsKey.Text = ApplicationSettings.Default.ServerKey; textBoxLibraryPath.Text = ApplicationSettings.Default.LibraryPath; textBoxHardwareKey.Text = ApplicationSettings.Default.HardwareKey; // Proxy Tab textBoxProxyUser.Text = ApplicationSettings.Default.ProxyUser; textBoxProxyPass.Password = ApplicationSettings.Default.ProxyPassword; textBoxProxyDomain.Text = ApplicationSettings.Default.ProxyDomain; // Appearance Tab textBoxSplashScreenReplacement.Text = ApplicationSettings.Default.SplashOverride; // Switch to TLS 2.1 ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12; // Populate the About tab textBoxLicence.AppendText(Properties.Resources.licence); labelPlayerVersion.Content = ApplicationSettings.Default.ClientVersion; }
public OptionForm() { InitializeComponent(); Debug.WriteLine("Initialise Option Form Components", "OptionForm"); // Get a hardware key here, just in case we havent been able to get one before _hardwareKey = new HardwareKey(); // XMDS completed event xmds1.RegisterDisplayCompleted += new XiboClient.xmds.RegisterDisplayCompletedEventHandler(xmds1_RegisterDisplayCompleted); // Set global proxy information OptionForm.SetGlobalProxy(); // Settings Tab textBoxXmdsUri.Text = ApplicationSettings.Default.ServerUri; textBoxServerKey.Text = ApplicationSettings.Default.ServerKey; textBoxLibraryPath.Text = ApplicationSettings.Default.LibraryPath; tbHardwareKey.Text = ApplicationSettings.Default.HardwareKey; // Proxy Tab textBoxProxyUser.Text = ApplicationSettings.Default.ProxyUser; maskedTextBoxProxyPass.Text = ApplicationSettings.Default.ProxyPassword; textBoxProxyDomain.Text = ApplicationSettings.Default.ProxyDomain; // Appearance Tab splashOverride.Text = ApplicationSettings.Default.SplashOverride; Debug.WriteLine("Loaded Options Form", "OptionForm"); }
public StatLog() { _stats = new Collection<Stat>(); // Get the key for this display _hardwareKey = new HardwareKey(); }
public StatLog() { _stats = new Collection <Stat>(); // Get the key for this display _hardwareKey = new HardwareKey(); }
public FileCollector(CacheManager cacheManager, string xmlString) { _cacheManager = cacheManager; // Load the XML file RF call _xml = new XmlDocument(); _xml.LoadXml(xmlString); // Create a required files object _requiredFiles = new RequiredFiles(); _requiredFiles.RequiredFilesXml = _xml; // Get the key for later use hardwareKey = new HardwareKey(); // Make a new filelist collection _files = new Collection<RequiredFile>(); // Create a webservice call xmdsFile = new XiboClient.xmds.xmds(); // Start up the Xmds Service Object xmdsFile.Credentials = null; xmdsFile.Url = Properties.Settings.Default.XiboClient_xmds_xmds; xmdsFile.UseDefaultCredentials = false; // Hook onto the xmds file complete event xmdsFile.GetFileCompleted += new XiboClient.xmds.GetFileCompletedEventHandler(xmdsFile_GetFileCompleted); }
public OptionForm() { InitializeComponent(); Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); Debug.WriteLine("Initialise Option Form Components", "OptionForm"); // Get a hardware key here, just in case we havent been able to get one before _hardwareKey = new HardwareKey(); // XMDS completed event xmds1.RegisterDisplayCompleted += new XiboClient.xmds.RegisterDisplayCompletedEventHandler(xmds1_RegisterDisplayCompleted); // Set global proxy information OptionForm.SetGlobalProxy(); // Settings Tab textBoxXmdsUri.Text = ApplicationSettings.Default.ServerUri; textBoxServerKey.Text = ApplicationSettings.Default.ServerKey; textBoxLibraryPath.Text = ApplicationSettings.Default.LibraryPath; tbHardwareKey.Text = ApplicationSettings.Default.HardwareKey; // Proxy Tab textBoxProxyUser.Text = ApplicationSettings.Default.ProxyUser; maskedTextBoxProxyPass.Text = ApplicationSettings.Default.ProxyPassword; textBoxProxyDomain.Text = ApplicationSettings.Default.ProxyDomain; // Appearance Tab splashOverride.Text = ApplicationSettings.Default.SplashOverride; Debug.WriteLine("Loaded Options Form", "OptionForm"); }
public BlackList() { // Check that the black list file is available blackListFile = ApplicationSettings.Default.LibraryPath + @"\" + ApplicationSettings.Default.BlackListLocation; // Get the key for this display hardwareKey = new HardwareKey(); }
public BlackList() { // Check that the black list file is available blackListFile = Application.UserAppDataPath + "//" + Properties.Settings.Default.blackListLocation; // Get the key for this display hardwareKey = new HardwareKey(); }
private void InitializeListener() { // Make a new collection of TraceMessages _traceMessages = new Collection<TraceMessage>(); _logPath = ApplicationSettings.Default.LibraryPath + @"\" + ApplicationSettings.Default.LogLocation; // Get the key for this display _hardwareKey = new HardwareKey(); }
private void InitializeListener() { // Make a new collection of TraceMessages _traceMessages = new Collection <TraceMessage>(); _logPath = ApplicationSettings.Default.LibraryPath + @"\" + ApplicationSettings.Default.LogLocation; // Get the key for this display _hardwareKey = new HardwareKey(); }
public OptionForm() { InitializeComponent(); Debug.WriteLine("Initialise Option Form Components", "OptionForm"); // Get a hardware key here, just in case we havent been able to get one before _hardwareKey = new HardwareKey(); // XMDS completed event xmds1.RegisterDisplayCompleted += new XiboClient.xmds.RegisterDisplayCompletedEventHandler(xmds1_RegisterDisplayCompleted); // Library Path if (ApplicationSettings.Default.LibraryPath == "DEFAULT") { Debug.WriteLine("Getting the Library Path", "OptionForm"); ApplicationSettings.Default.LibraryPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Xibo Library"; ApplicationSettings.Default.Save(); } // Computer name if the display name hasnt been set yet if (ApplicationSettings.Default.DisplayName == "COMPUTERNAME") { Debug.WriteLine("Getting the display Name", "OptionForm"); ApplicationSettings.Default.DisplayName = Environment.MachineName; ApplicationSettings.Default.Save(); } // Set global proxy information OptionForm.SetGlobalProxy(); // Settings Tab textBoxXmdsUri.Text = ApplicationSettings.Default.ServerUri; textBoxServerKey.Text = ApplicationSettings.Default.ServerKey; textBoxLibraryPath.Text = ApplicationSettings.Default.LibraryPath; tbHardwareKey.Text = ApplicationSettings.Default.HardwareKey; // Proxy Tab textBoxProxyUser.Text = ApplicationSettings.Default.ProxyUser; maskedTextBoxProxyPass.Text = ApplicationSettings.Default.ProxyPassword; textBoxProxyDomain.Text = ApplicationSettings.Default.ProxyDomain; // Appearance Tab splashOverride.Text = ApplicationSettings.Default.SplashOverride; Debug.WriteLine("Loaded Options Form", "OptionForm"); }
public OptionForm() { InitializeComponent(); // Set the icon Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath); // Hide unnecessary fields if (Application.ProductName != "Xibo") { label17.Hide(); linkLabel1.Hide(); } // Get a hardware key here, just in case we havent been able to get one before _hardwareKey = new HardwareKey(); // XMDS completed event xmds1.RegisterDisplayCompleted += new XiboClient.xmds.RegisterDisplayCompletedEventHandler(xmds1_RegisterDisplayCompleted); // Set global proxy information OptionForm.SetGlobalProxy(); // Settings Tab textBoxXmdsUri.Text = ApplicationSettings.Default.ServerUri; textBoxServerKey.Text = ApplicationSettings.Default.ServerKey; textBoxLibraryPath.Text = ApplicationSettings.Default.LibraryPath; tbHardwareKey.Text = ApplicationSettings.Default.HardwareKey; // Proxy Tab textBoxProxyUser.Text = ApplicationSettings.Default.ProxyUser; maskedTextBoxProxyPass.Text = ApplicationSettings.Default.ProxyPassword; textBoxProxyDomain.Text = ApplicationSettings.Default.ProxyDomain; // Appearance Tab splashOverride.Text = ApplicationSettings.Default.SplashOverride; // Switch to TLS 2.1 System.Net.ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12; Debug.WriteLine("Loaded Options Form", "OptionForm"); }
/// <summary> /// Report Required Files to XMDS /// </summary> public void ReportInventory() { lock (_locker) { Trace.WriteLine(new LogMessage("RequiredFiles - ReportInventory", "Reporting Inventory"), LogType.Info.ToString()); HardwareKey hardwareKey = new HardwareKey(); // Build the XML required by media file string xml = ""; foreach (RequiredFile rf in RequiredFileList) { xml += string.Format("<file type=\"{0}\" id=\"{1}\" complete=\"{2}\" lastChecked=\"{3}\" md5=\"{4}\" />", rf.FileType, rf.Id.ToString(), (rf.Complete) ? "1" : "0", rf.LastChecked.ToString(), rf.Md5); } xml = string.Format("<files>{0}</files>", xml); _report.MediaInventoryAsync(ApplicationSettings.Default.ServerKey, hardwareKey.Key, xml); } }
public StatLog() { _stats = new Collection<Stat>(); _xmds = new xmds.xmds(); // Register a listener for the XMDS stats _xmds.SubmitStatsCompleted += new XiboClient.xmds.SubmitStatsCompletedEventHandler(_xmds_SubmitStatsCompleted); // Get the key for this display _hardwareKey = new HardwareKey(); _xmdsProcessing = false; }
/// <summary> /// Create a schedule /// </summary> /// <param name="scheduleLocation"></param> public Schedule(string scheduleLocation, ref CacheManager cacheManager, ref ClientInfo clientInfoForm) { Trace.WriteLine(string.Format("XMDS Location: {0}", ApplicationSettings.Default.XiboClient_xmds_xmds)); // Get the key for this display _hardwareKey = new HardwareKey(); // Save the schedule location _scheduleLocation = scheduleLocation; // Create a new collection for the layouts in the schedule _layoutSchedule = new Collection <LayoutSchedule>(); // Set cachemanager _cacheManager = cacheManager; // Set client info form _clientInfoForm = clientInfoForm; // Create a Register Agent _registerAgent = new RegisterAgent(); _registerAgentThread = new Thread(new ThreadStart(_registerAgent.Run)); _registerAgentThread.Name = "RegisterAgentThread"; // Create a schedule manager _scheduleManager = new ScheduleManager(_cacheManager, scheduleLocation); _scheduleManager.OnNewScheduleAvailable += new ScheduleManager.OnNewScheduleAvailableDelegate(_scheduleManager_OnNewScheduleAvailable); _scheduleManager.OnRefreshSchedule += new ScheduleManager.OnRefreshScheduleDelegate(_scheduleManager_OnRefreshSchedule); _scheduleManager.ClientInfoForm = _clientInfoForm; // Create a schedule manager thread _scheduleManagerThread = new Thread(new ThreadStart(_scheduleManager.Run)); _scheduleManagerThread.Name = "ScheduleManagerThread"; // Create a Schedule Agent _scheduleAgent = new ScheduleAgent(); _scheduleAgent.CurrentScheduleManager = _scheduleManager; _scheduleAgent.ScheduleLocation = scheduleLocation; _scheduleAgent.HardwareKey = _hardwareKey.Key; _scheduleAgent.ClientInfoForm = _clientInfoForm; // Create a thread for the Schedule Agent to run in - but dont start it up yet. _scheduleAgentThread = new Thread(new ThreadStart(_scheduleAgent.Run)); _scheduleAgentThread.Name = "ScheduleAgentThread"; // Create a RequiredFilesAgent _requiredFilesAgent = new RequiredFilesAgent(); _requiredFilesAgent.CurrentCacheManager = cacheManager; _requiredFilesAgent.HardwareKey = _hardwareKey.Key; _requiredFilesAgent.ClientInfoForm = _clientInfoForm; _requiredFilesAgent.OnComplete += new RequiredFilesAgent.OnCompleteDelegate(LayoutFileModified); // Create a thread for the RequiredFiles Agent to run in - but dont start it up yet. _requiredFilesAgentThread = new Thread(new ThreadStart(_requiredFilesAgent.Run)); _requiredFilesAgentThread.Name = "RequiredFilesAgentThread"; // Library Agent _libraryAgent = new LibraryAgent(); _libraryAgent.CurrentCacheManager = _cacheManager; // Create a thread for the Library Agent to run in - but dont start it up yet. _libraryAgentThread = new Thread(new ThreadStart(_libraryAgent.Run)); _libraryAgentThread.Name = "LibraryAgent"; // Log Agent _logAgent = new LogAgent(); _logAgentThread = new Thread(new ThreadStart(_logAgent.Run)); _logAgentThread.Name = "LogAgent"; }
/// <summary> /// Create a schedule /// </summary> /// <param name="scheduleLocation"></param> public Schedule(string scheduleLocation, ref CacheManager cacheManager, ref ClientInfo clientInfoForm) { Trace.WriteLine(string.Format("XMDS Location: {0}", ApplicationSettings.Default.XiboClient_xmds_xmds)); // Get the key for this display _hardwareKey = new HardwareKey(); // Save the schedule location _scheduleLocation = scheduleLocation; // Create a new collection for the layouts in the schedule _layoutSchedule = new Collection <ScheduleItem>(); // Set cachemanager _cacheManager = cacheManager; // Set client info form _clientInfoForm = clientInfoForm; // Create a Register Agent _registerAgent = new RegisterAgent(); _registerAgent.OnXmrReconfigure += _registerAgent_OnXmrReconfigure; _registerAgentThread = new Thread(new ThreadStart(_registerAgent.Run)); _registerAgentThread.Name = "RegisterAgentThread"; // Create a schedule manager _scheduleManager = new ScheduleManager(_cacheManager, scheduleLocation); _scheduleManager.OnNewScheduleAvailable += new ScheduleManager.OnNewScheduleAvailableDelegate(_scheduleManager_OnNewScheduleAvailable); _scheduleManager.OnRefreshSchedule += new ScheduleManager.OnRefreshScheduleDelegate(_scheduleManager_OnRefreshSchedule); _scheduleManager.OnScheduleManagerCheckComplete += _scheduleManager_OnScheduleManagerCheckComplete; _scheduleManager.ClientInfoForm = _clientInfoForm; // Create a schedule manager thread _scheduleManagerThread = new Thread(new ThreadStart(_scheduleManager.Run)); _scheduleManagerThread.Name = "ScheduleManagerThread"; // Create a RequiredFilesAgent _scheduleAndRfAgent = new ScheduleAndFilesAgent(); _scheduleAndRfAgent.CurrentCacheManager = cacheManager; _scheduleAndRfAgent.CurrentScheduleManager = _scheduleManager; _scheduleAndRfAgent.ScheduleLocation = scheduleLocation; _scheduleAndRfAgent.HardwareKey = _hardwareKey.Key; _scheduleAndRfAgent.OnFullyProvisioned += _requiredFilesAgent_OnFullyProvisioned; _scheduleAndRfAgent.ClientInfoForm = _clientInfoForm; _scheduleAndRfAgent.OnComplete += new ScheduleAndFilesAgent.OnCompleteDelegate(LayoutFileModified); // Create a thread for the RequiredFiles Agent to run in - but dont start it up yet. _scheduleAndRfAgentThread = new Thread(new ThreadStart(_scheduleAndRfAgent.Run)); _scheduleAndRfAgentThread.Name = "RequiredFilesAgentThread"; // Library Agent _libraryAgent = new LibraryAgent(); _libraryAgent.CurrentCacheManager = _cacheManager; // Create a thread for the Library Agent to run in - but dont start it up yet. _libraryAgentThread = new Thread(new ThreadStart(_libraryAgent.Run)); _libraryAgentThread.Name = "LibraryAgent"; // Log Agent _logAgent = new LogAgent(); _logAgentThread = new Thread(new ThreadStart(_logAgent.Run)); _logAgentThread.Name = "LogAgent"; // XMR Subscriber _xmrSubscriber = new XmrSubscriber(); _xmrSubscriber.HardwareKey = _hardwareKey; _xmrSubscriber.ClientInfoForm = _clientInfoForm; _xmrSubscriber.OnAction += _xmrSubscriber_OnAction; // Thread start _xmrSubscriberThread = new Thread(new ThreadStart(_xmrSubscriber.Run)); _xmrSubscriberThread.Name = "XmrSubscriber"; // Embedded Server _server = new EmbeddedServer(); _server.ClientInfoForm = _clientInfoForm; _server.OnServerClosed += _server_OnServerClosed; _serverThread = new Thread(new ThreadStart(_server.Run)); _serverThread.Name = "EmbeddedServer"; }
/// <summary> /// Report Required Files to XMDS /// </summary> public void ReportInventory() { HardwareKey hardwareKey = new HardwareKey(); // Build the XML required by media file string xml = ""; foreach (RequiredFile rf in _requiredFiles) { xml += string.Format("<file type=\"{0}\" id=\"{1}\" complete=\"{2}\" lastChecked=\"{3}\" md5=\"{4}\" />", rf.FileType, rf.Id.ToString(), rf.Complete.ToString(), rf.LastChecked.ToString(), rf.Md5); } xml = string.Format("<files macAddress=\"{1}\">{0}</files>", xml, hardwareKey.MacAddress); _report.MediaInventoryAsync(Properties.Settings.Default.Version, Properties.Settings.Default.ServerKey, hardwareKey.Key, xml); }
/// <summary> /// Report Required Files to XMDS /// </summary> public void ReportInventory() { lock (_locker) { Trace.WriteLine(new LogMessage("RequiredFiles - ReportInventory", "Reporting Inventory"), LogType.Info.ToString()); HardwareKey hardwareKey = new HardwareKey(); // Build the XML required by media file string xml = ""; foreach (RequiredFile rf in RequiredFileList) { xml += string.Format("<file type=\"{0}\" id=\"{1}\" complete=\"{2}\" lastChecked=\"{3}\" md5=\"{4}\" />", rf.FileType, rf.Id.ToString(), (rf.Complete) ? "1" : "0", rf.LastChecked.ToString(), rf.Md5); } xml = string.Format("<files clientType=\"windows\" clientVersion=\"{2}\" clientCode=\"{3}\" macAddress=\"{1}\">{0}</files>", xml, hardwareKey.MacAddress, Settings.Default.ClientVersion, Settings.Default.ClientCodeVersion.ToString()); _report.MediaInventoryAsync(Properties.Settings.Default.Version, Properties.Settings.Default.ServerKey, hardwareKey.Key, xml); } }
private void InitializeListener() { // Make a new collection of TraceMessages _traceMessages = new Collection<TraceMessage>(); _logPath = Application.UserAppDataPath + @"/" + Properties.Settings.Default.logLocation; _xmdsProcessing = false; _xmds = new xmds.xmds(); // Register a listener for the XMDS stats _xmds.SubmitLogCompleted += new XiboClient.xmds.SubmitLogCompletedEventHandler(_xmds_SubmitLogCompleted); // Get the key for this display _hardwareKey = new HardwareKey(); }
/// <summary> /// Create a schedule /// </summary> /// <param name="scheduleLocation"></param> public Schedule(string scheduleLocation, ref CacheManager cacheManager, ref ClientInfo clientInfoForm) { Trace.WriteLine(string.Format("XMDS Location: {0}", ApplicationSettings.Default.XiboClient_xmds_xmds)); // Get the key for this display _hardwareKey = new HardwareKey(); // Save the schedule location _scheduleLocation = scheduleLocation; // Create a new collection for the layouts in the schedule _layoutSchedule = new Collection<LayoutSchedule>(); // Set cachemanager _cacheManager = cacheManager; // Set client info form _clientInfoForm = clientInfoForm; // Create a Register Agent _registerAgent = new RegisterAgent(); _registerAgentThread = new Thread(new ThreadStart(_registerAgent.Run)); _registerAgentThread.Name = "RegisterAgentThread"; // Create a schedule manager _scheduleManager = new ScheduleManager(_cacheManager, scheduleLocation); _scheduleManager.OnNewScheduleAvailable += new ScheduleManager.OnNewScheduleAvailableDelegate(_scheduleManager_OnNewScheduleAvailable); _scheduleManager.OnRefreshSchedule += new ScheduleManager.OnRefreshScheduleDelegate(_scheduleManager_OnRefreshSchedule); _scheduleManager.ClientInfoForm = _clientInfoForm; // Create a schedule manager thread _scheduleManagerThread = new Thread(new ThreadStart(_scheduleManager.Run)); _scheduleManagerThread.Name = "ScheduleManagerThread"; // Create a Schedule Agent _scheduleAgent = new ScheduleAgent(); _scheduleAgent.CurrentScheduleManager = _scheduleManager; _scheduleAgent.ScheduleLocation = scheduleLocation; _scheduleAgent.HardwareKey = _hardwareKey.Key; _scheduleAgent.ClientInfoForm = _clientInfoForm; // Create a thread for the Schedule Agent to run in - but dont start it up yet. _scheduleAgentThread = new Thread(new ThreadStart(_scheduleAgent.Run)); _scheduleAgentThread.Name = "ScheduleAgentThread"; // Create a RequiredFilesAgent _requiredFilesAgent = new RequiredFilesAgent(); _requiredFilesAgent.CurrentCacheManager = cacheManager; _requiredFilesAgent.HardwareKey = _hardwareKey.Key; _requiredFilesAgent.ClientInfoForm = _clientInfoForm; _requiredFilesAgent.OnComplete += new RequiredFilesAgent.OnCompleteDelegate(LayoutFileModified); // Create a thread for the RequiredFiles Agent to run in - but dont start it up yet. _requiredFilesAgentThread = new Thread(new ThreadStart(_requiredFilesAgent.Run)); _requiredFilesAgentThread.Name = "RequiredFilesAgentThread"; // Library Agent _libraryAgent = new LibraryAgent(); _libraryAgent.CurrentCacheManager = _cacheManager; // Create a thread for the Library Agent to run in - but dont start it up yet. _libraryAgentThread = new Thread(new ThreadStart(_libraryAgent.Run)); _libraryAgentThread.Name = "LibraryAgent"; // Log Agent _logAgent = new LogAgent(); _logAgentThread = new Thread(new ThreadStart(_logAgent.Run)); _logAgentThread.Name = "LogAgent"; }
public OptionForm() { InitializeComponent(); System.Diagnostics.Debug.WriteLine("Initialise Option Form Components", "OptionForm"); // Get a hardware key here, just in case we havent been able to get one before _hardwareKey = new HardwareKey(); // XMDS completed event xmds1.RegisterDisplayCompleted += new XiboClient.xmds.RegisterDisplayCompletedEventHandler(xmds1_RegisterDisplayCompleted); // Library Path if (Properties.Settings.Default.LibraryPath == "DEFAULT") { Debug.WriteLine("Getting the Library Path", "OptionForm"); Properties.Settings.Default.LibraryPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Xibo Library"; Properties.Settings.Default.Save(); } // Computer name if the display name hasnt been set yet if (Settings.Default.displayName == "COMPUTERNAME") { Debug.WriteLine("Getting the display Name", "OptionForm"); Settings.Default.displayName = Environment.MachineName; Settings.Default.Save(); } // Set global proxy information OptionForm.SetGlobalProxy(); // Settings Tab textBoxXmdsUri.Text = Settings.Default.serverURI; textBoxServerKey.Text = Settings.Default.ServerKey; textBoxLibraryPath.Text = Settings.Default.LibraryPath; tbHardwareKey.Text = Settings.Default.hardwareKey; numericUpDownCollect.Value = Settings.Default.collectInterval; checkBoxPowerPoint.Checked = Settings.Default.powerpointEnabled; checkBoxStats.Checked = Settings.Default.statsEnabled; nupScrollStepAmount.Value = Settings.Default.scrollStepAmount; // Register Tab labelXmdsUrl.Text = Settings.Default.XiboClient_xmds_xmds; textBoxDisplayName.Text = Settings.Default.displayName; // Proxy Tab textBoxProxyUser.Text = Settings.Default.ProxyUser; maskedTextBoxProxyPass.Text = Settings.Default.ProxyPassword; textBoxProxyDomain.Text = Settings.Default.ProxyDomain; // Client Tab clientWidth.Value = Settings.Default.sizeX; clientHeight.Value = Settings.Default.sizeY; offsetX.Value = Settings.Default.offsetX; offsetY.Value = Settings.Default.offsetY; // Advanced Tab numericUpDownEmptyRegions.Value = Settings.Default.emptyLayoutDuration; cbExpireModifiedLayouts.Checked = Settings.Default.expireModifiedLayouts; enableMouseCb.Checked = Settings.Default.EnableMouse; doubleBufferingCheckBox.Checked = Settings.Default.DoubleBuffering; System.Diagnostics.Debug.WriteLine("Loaded Options Form", "OptionForm"); }
/// <summary> /// Register display clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonRegister_Click(object sender, EventArgs e) { // Make a new hardware key just in case we have changed it in the form. _hardwareKey = new HardwareKey(); textBoxResults.Text = "Sending Request"; Settings.Default.XiboClient_xmds_xmds = textBoxXmdsUri.Text.TrimEnd('/') + @"/xmds.php"; xmds1.Url = Settings.Default.XiboClient_xmds_xmds; Properties.Settings.Default.displayName = textBoxDisplayName.Text; Properties.Settings.Default.Save(); xmds1.RegisterDisplayAsync(Properties.Settings.Default.ServerKey, _hardwareKey.Key, textBoxDisplayName.Text, Properties.Settings.Default.Version); }
/// <summary> /// Initialize the Schedule components /// </summary> public void InitializeComponents() { // Get the key for this display _hardwareKey = new HardwareKey(); // Start up the Xmds Service Object _xmds2.Credentials = null; _xmds2.Url = Properties.Settings.Default.XiboClient_xmds_xmds; _xmds2.UseDefaultCredentials = false; _xmdsProcessing = false; _xmds2.RequiredFilesCompleted += new XiboClient.xmds.RequiredFilesCompletedEventHandler(xmds2_RequiredFilesCompleted); _xmds2.ScheduleCompleted += new XiboClient.xmds.ScheduleCompletedEventHandler(xmds2_ScheduleCompleted); Trace.WriteLine(String.Format("Collection Interval: {0}", Properties.Settings.Default.collectInterval), "Schedule - InitializeComponents"); // The Timer for the Service call Timer xmdsTimer = new Timer(); xmdsTimer.Interval = (int) Properties.Settings.Default.collectInterval * 1000; xmdsTimer.Tick += new EventHandler(xmdsTimer_Tick); xmdsTimer.Start(); // The Timer for the Schedule Polling Timer scheduleTimer = new Timer(); scheduleTimer.Interval = 10000; // 10 Seconds scheduleTimer.Tick += new EventHandler(scheduleTimer_Tick); scheduleTimer.Start(); // Manual first tick _xmdsProcessing = true; // We must have a schedule by now. UpdateLayoutSchedule(true); // Fire off a get required files event - async _xmds2.RequiredFilesAsync(Properties.Settings.Default.ServerKey, _hardwareKey.Key, Properties.Settings.Default.Version); }