/// <summary>
 /// Initializes a new instance of the LoginViewModel class.
 /// </summary>
 public LoginViewModel(IConfigService configService, ConfigViewModel configViewModel)
 {
     _configService = configService;
     _configViewModel = configViewModel;
     LoginSubmit = new RelayCommand<object>(LoginSubmitAction);
     HotStartCommand = new RelayCommand(HotStartAction);
 }
 /// <summary>
 /// Initializes a new instance of the Login class.
 /// </summary>
 public LoginWindow()
 {
     _configViewModel = ServiceLocator.Current.GetInstance<ConfigViewModel>();
     var loginViewModel = ServiceLocator.Current.GetInstance<LoginViewModel>();
     loginViewModel.CompleteCommand = Complete;
     InitializeComponent();
 }
 /// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public MainViewModel(ConfigViewModel configViewModel, ProductEditorViewModel productEditorViewModel,
     AllProductViewModel productViewModel, FailProductViewModel failproductViewModel)
 {
     _configViewModel = configViewModel;
     _productEditorViewModel = productEditorViewModel;
     _allproductViewModel = productViewModel;
     _failproductViewModel = failproductViewModel;
     _username = AppLocator.Contenxt.UserName;
     HotStartCommand = new RelayCommand(HotStartAction);
 }
 public Config()
 {
     _configViewModel = ServiceLocator.Current.GetInstance<ConfigViewModel>();
     InitializeComponent();
 }