private void RenderPathSetting(PathSetting setting) { Controls.PathSetting settingControl = new Controls.PathSetting(setting); settingControl.MouseEnter += ShowDescription; setting.Control = settingControl; spControls.Children.Add(settingControl); }
private void SavePathSetting(PathSetting setting) { Controls.PathSetting settingControl = setting.Control as Controls.PathSetting; if (!settingControl.Validate()) { valid = false; } else { setting.Value = settingControl.GetValue(); } }