public CardWindow(OBSElement config) { mConfig = config; mConfig.SetString("file", ""); InitializeComponent(); this.Loaded += CardWindow_Loaded; this.Closing += CardWindow_Closing; }
public PadConfigWindow(CLROBS.XElement config) { InitializeComponent(); dInput = new SharpDX.DirectInput.DirectInput(); var list = dInput.GetDevices(SharpDX.DirectInput.DeviceType.Gamepad, SharpDX.DirectInput.DeviceEnumerationFlags.AttachedOnly); foreach (var item in list) { PadBox.Items.Add(new { item.ProductName }); } DebugText.Text = "not used curently - debug see OBS logs"; }