public void OnSaved(WpfConfiguration configurationControl) { LyncStatusChangedConfig config = configurationControl as LyncStatusChangedConfig; status = config.Status; userId = config.UserId; }
public void OnSaved(WpfConfiguration configurationControl) { if (!isCreatingForFirstTime) { ThreadPool.QueueUserWorkItem(o => phoneConnector.SetNewData()); } }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as FolderChangeConfig; folderToMonitor = config.FolderToMonitor; monitorSubDirs = config.SubDirectories; }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as Phidget1066AdvServoConfig; servoType = config.ServoType; position = config.Position; }
public void OnSaved(WpfConfiguration configurationControl) { status = ((TweetConfig)configurationControl).Status; username = ((TweetConfig)configurationControl).Username; oauthToken = ((TweetConfig)configurationControl).OAuthToken; accessToken = ((TweetConfig)configurationControl).AccessToken; }
private void buttonSave_Click(object sender, RoutedEventArgs e) { WpfConfiguration config = ConfigContent.Content as WpfConfiguration; try { configuration.OnSave(); SelectedModuleInstance.OnSaved(config); ((ModuleBase)SelectedModuleInstance).SetConfigString(); } catch { ErrorLog.AddError(ErrorType.Failure, "Error saving " + SelectedModule.Name); } ThreadPool.QueueUserWorkItem(o => { try { configuration.OnClosing(); } catch { ErrorLog.AddError(ErrorType.Failure, "Error closing " + SelectedModule.Name + "'s configuration"); } }); DialogResult = true; }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as SkypeAudioMessageConfig; skypeID = config.SkypeID; filePath = config.FilePath; }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as GoogleMapsSearchLocationConfig; location = config.Location; mapType = config.MapType; }
public ConfigWindow(IWpfConfigurable module) { Owner = Application.Current.MainWindow; this.module = module; configuration = module.ConfigurationControl; InitializeComponent(); ConfigContent.Content = configuration; buttonSave.IsEnabled = configuration.CanSave; windowHeader.Text = configuration.Title; configuration.CanSavedChanged += configuration_CanSavedChanged; configuration.Loaded += Configuration_Loaded; // In constructor subscribe to the Change event of the WindowRect DependencyProperty DependencyPropertyDescriptor dpd = DependencyPropertyDescriptor.FromProperty(WindowRectProperty, typeof(ConfigWindow)); if (dpd != null) { dpd.AddValueChanged(this, delegate { ResizeWindow(WindowRect); }); } }
public void OnSaved(WpfConfiguration configurationControl) { LyncSendFileConfig config = configurationControl as LyncSendFileConfig; userId = config.UserId; fileName = config.FileName; }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as PhidgetDigitalOutputConfig; index = config.Index; outputType = config.OutputType; }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as Phidget1055IrTransmitConfig; code = config.Code; codeInfo = config.CodeInfo; }
private void Button_Save_Click(object sender, RoutedEventArgs e) { WpfConfiguration config = ConfigContent.Content as WpfConfiguration; try { configuration.OnSave(); module.OnSaved(config); ((ModuleBase)module).SetConfigString(); } catch { ErrorLog.AddError(ErrorType.Failure, "Error saving " + configuration.Name); } ThreadPool.QueueUserWorkItem(o => { try { configuration.OnClosing(); } catch { Dispatcher.Invoke(DispatcherPriority.Normal, (System.Action)(() => { ErrorLog.AddError(ErrorType.Failure, "Error closing " + configuration.Name + "'s configuration"); })); } }); ((MainWindow)Application.Current.MainWindow).Save(); DialogResult = true; }
public void OnSaved(WpfConfiguration configurationControl) { WebcamSnapshotConfig config = configurationControl as WebcamSnapshotConfig; config.Cleanup(); folderLocation = config.SaveLocation; fileNamePrefix = config.FilenamePrefix; captureWidth = 640; captureHeight = 480; selectedCameraPath = config.SelectedCameraPath; selectedCameraName = config.SelectedCameraName; showPreview = config.ShowPreview; playShutterSound = config.PlayShutterSound; if (WebcamManager.IsServiceRestartRequired()) { WebcamManager.RestartService(); } //look for the selected camera selectedCameraIndex = LookforSelectedCamera(true); if (selectedCameraIndex != -1 && selectedCameraConnected) { if (!callbacksRegistered) { WebcamManager.RegisterWebcamConnectionEvent(OnCameraConnected); WebcamManager.RegisterWebcamRemovalEvent(OnCameraDisconnected); callbacksRegistered = true; } InitializeSnapshot(selectedCameraIndex); } }
public void OnSaved(WpfConfiguration configurationControl) { WebCamFaceDetectionConfig config = configurationControl as WebCamFaceDetectionConfig; config.Cleanup(); captureWidth = 640; captureHeight = 480; selectedCameraPath = config.SelectedCameraPath; selectedCameraName = config.SelectedCameraName; selectedCameraIndex = config.SelectedCameraIndex; roiX = config.RoiX; roiY = config.RoiY; roiWidth = config.RoiWidth; roiHeight = config.RoiHeight; camerafocus = config.CameraFocus; camerazoom = config.CameraZoom; if (WebcamManager.IsServiceRestartRequired()) { WebcamManager.RestartService(); } selectedCameraIndex = LookforSelectedCamera(true); if (selectedCameraIndex != -1 && selectedCameraConnected) { if (!callbacksRegistered) { WebcamManager.RegisterWebcamConnectionEvent(OnCameraConnected); WebcamManager.RegisterWebcamRemovalEvent(OnCameraDisconnected); callbacksRegistered = true; } InitializeFaceDetection(selectedCameraIndex); } }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as ScreenshotConfig; saveLocation = config.SaveLocation; filenamePrefix = config.FilenamePrefix; }
public void OnSaved(WpfConfiguration configurationControl) { var rpc = configurationControl as RunProgramConfig; FileName = rpc.Filename; Arguments = rpc.Arguments; }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as GooglePlusActivityLinkConfig; profileId = config.ProfileID; activityLink = config.ActivityLink; }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as Phidget1045TemperatureConfig; topValue = config.TopValue; increasing = config.Increasing; }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as SkypeMessageConfig; skypeID = config.SkypeID; message = config.Message; }
public void OnSaved(WpfConfiguration configurationControl) { LyncSendMessageConfig config = configurationControl as LyncSendMessageConfig; userId = config.UserId; message = config.Message; }
public void OnSaved(WpfConfiguration configurationControl) { ACPowerMonitorConfig config = configurationControl as ACPowerMonitorConfig; lock (Lock) { AlertWhen = config.AlertWhen; } }
public void OnSaved(WpfConfiguration configurationControl) { var config = configurationControl as GooglePlusAddMomentConfig; momentUrl = config.MomentText; refreshToken = config.RefreshToken; }
public void OnSaved(WpfConfiguration configurationControl) { LyncUpdateStatusConfig config = configurationControl as LyncUpdateStatusConfig; statusId = config.StatusId; statusText = config.StatusText; }
public void OnSaved(WpfConfiguration configurationControl) { var config = (TimerConfig)configurationControl; hours = config.Hours; minutes = config.Minutes; seconds = config.Seconds; }
public void OnSaved(WpfConfiguration configurationControl) { SensorConfig sensor = configurationControl as SensorConfig; Config1129Touch config = sensor.Sensor as Config1129Touch; Index = sensor.Index; OnTurnOn = config.OnTurnOn; }
public void OnSaved(WpfConfiguration configurationControl) { var config = (PowerStatusConfiguration)configurationControl; chosenStatus = config.ChosenStatus; chosenBCS = config.ChosenBCS; percentage = config.Percentage; }
public void OnSaved(WpfConfiguration configurationControl) { SensorConfig sensor = configurationControl as SensorConfig; ConfigDigitalInput config = sensor.Sensor as ConfigDigitalInput; index = sensor.Index; onWhenOn = config.OnWhenOn; }
public void OnSaved(WpfConfiguration configurationControl) { var config = (WeatherAlertConfig)configurationControl; zipCode = config.ZipCodeProp; temperature = config.TempProp; checkBelow = config.CheckAbove; }
public void OnSaved(WpfConfiguration configurationControl) { SensorConfig sensor = configurationControl as SensorConfig; Config1101IrDistance config = sensor.Sensor as Config1101IrDistance; Index = sensor.Index; TopValue = config.TopValue; BottomValue = config.BottomValue; }
public void OnSaved(WpfConfiguration configurationControl) { SensorConfig sensor = configurationControl as SensorConfig; Config1133Sound config = sensor.Sensor as Config1133Sound; Index = sensor.Index; TopValue = config.TopValue; Increasing = config.Increasing; }
public void OnSaved(WpfConfiguration configurationControl) { InactivityEventConfig config = configurationControl as InactivityEventConfig; lock (Lock) { InactivityThreshold = config.Threshold; InactivityUnit = config.ThresholdUnit; TriggerOnLeave = config.TriggerOnLeave; } }
public void OnSaved(WpfConfiguration ConfigurationControl) { var config = ConfigurationControl as ArduinoDigitalOutputConfig; index = config.Index; outputType = config.OutputType; port = config.Port; portName = config.PortName; }
public void OnSaved(WpfConfiguration configurationControl) { SendEmailReactionConfig config = configurationControl as SendEmailReactionConfig; Hostname = config.Hostname; Port = config.Port; UseSsl = config.UseSsl; EmailAddress = config.EmailAddress; Password = config.Password; To = config.To; Subject = config.Subject; Body = config.Body; }
public void OnSaved(WpfConfiguration configurationControl) { selected = ((SetShortcut)configurationControl).selectedIndex; }
public void OnSaved(WpfConfiguration configurationControl) { EmailReceiveEventConfig config = configurationControl as EmailReceiveEventConfig; lock (Lock) { Hostname = config.Hostname; Port = config.Port; UseSsl = config.UseSsl; EmailAddress = config.EmailAddress; Password = config.Password; Subject = config.Subject.Trim(); From = config.From.Trim(); } }
public void OnSaved(WpfConfiguration control) { InsteonReactionConfig config = control as InsteonReactionConfig; data = config.DataItem; }