Пример #1
0
 public DeviceConfigWindow(DeviceType deviceType, [CanBeNull] TemplateWithArgs <DeviceTemplate> device,
                           [CanBeNull] IEnumerable <TemplateWithArgs <ConsumerTemplate> > consumers)
 {
     InitializeComponent();
     Title = $"{deviceType.DisplayName} Configuration";
     DockPanel.Children.Add(DeviceConfigPanel = new DeviceConfigPanel(deviceType, device, consumers));
     DeviceConfigPanel.DeviceChanged         += DeviceChanged;
     DeviceConfigPanel.ConsumerChanged       += ConsumerChanged;
 }
 private void Window_OnLoaded(object sender, RoutedEventArgs e)
 {
     DeviceConfigPanel.UpdateDevices();
     LoadMultiSessionConfig(_msCfgFile);
 }
Пример #3
0
 private void Window_OnLoaded(object sender, RoutedEventArgs e)
 {
     DeviceConfigPanel.UpdateDevices();
     LoadAutoRunConfig(_autoRunFile);
 }