Ejemplo n.º 1
0
 /// <summary>
 /// Creates the device (e.g. HMI) simulator.
 /// </summary>
 /// <param name="bindingFactory">The binding factory.</param>
 /// <param name="toDispose">
 /// To dispose captures functionality to create a collection of disposable objects.
 /// The objects are disposed when application exits.
 /// </param>
 internal static void CreateDevice(IConsumerViewModel ViewModel, Action <IDisposable> toDispose)
 {
     Current = new ConsumerDataManagementSetup();
     toDispose(Current);
     Current.m_ViewModel = ViewModel;
     ViewModel.ConsumerUpdateConfiguration = new RestartCommand(Current.Restart);
     Current.Setup();
 }
 /// <summary>
 /// Creates the device (e.g. HMI) simulator.
 /// </summary>
 /// <param name="bindingFactory">The binding factory.</param>
 /// <param name="toDispose">
 /// To dispose captures functionality to create a collection of disposable objects. 
 /// The objects are disposed when application exits.
 /// </param>
 internal static void CreateDevice(IConsumerViewModel ViewModel, Action<IDisposable> toDispose)
 {
     Current = new ConsumerDataManagementSetup();
       toDispose(Current);
       Current.m_ViewModel = ViewModel;
       ViewModel.ConsumerUpdateConfiguration = new RestartCommand(Current.Restart);
       Current.Setup();
 }