public WindowDosingSettings(OpcServer.OpcList opcName, DosingSettingsViewModel dosingSettingsViewModel) { InitializeComponent(); ElDosingSettings.Initialize(opcName, dosingSettingsViewModel); DataContext = dosingSettingsViewModel; KeyDown += OnKeyDown; Closed += Window_OnClosed; }
public void Initialize(OpcServer.OpcList opcName, DosingSettingsViewModel dosingSettingsViewModel) { DataContext = dosingSettingsViewModel; }