Example #1
0
        public WindowHolder GetHardwareWizard(string deviceType, HardwareSettingsViewModel hardwareSettingsViewModel,
                                              HardwareConfiguration loadedConfig = null)
        {
            Window CreateWindow()
            {
                foreach (var key in bindings.Keys)
                {
                    if (bindings[key].Name == deviceType)
                    {
                        return(bindings[key].GetConfigurationWindow(hardwareSettingsViewModel, loadedConfig));
                    }
                }

                return(null);
            }

            return(new WindowHolder(CreateWindow));
        }
Example #2
0
 public abstract Window GetConfigurationWindow(HardwareSettingsViewModel hardwareSettingsViewModel,
                                               HardwareConfiguration loadConfig = null);