public override bool ShowConfiguration(XElement data) { ConfigDialog dialog = new ConfigDialog(data); if (dialog.ShowDialog().GetValueOrDefault(false)) { BrowserConfig config = new BrowserConfig(); config.Reload(data); data.Parent.SetFloat("cx", (float)config.BrowserSourceSettings.Width); data.Parent.SetFloat("cy", (float)config.BrowserSourceSettings.Height); return true; } else { return false; } }
public override bool ShowConfiguration(XElement data) { ConfigDialog dialog = new ConfigDialog(data); if (dialog.ShowDialog().GetValueOrDefault(false)) { BrowserConfig config = new BrowserConfig(); config.Reload(data); data.Parent.SetFloat("cx", (float)config.BrowserSourceSettings.Width); data.Parent.SetFloat("cy", (float)config.BrowserSourceSettings.Height); return(true); } else { return(false); } }