protected override void OnStartup(StartupEventArgs e) { WindowService windowService = new WindowService(); IViewModelFactory viewModelFactory = new ViewModelFactory(); IConnection connection = new Connection(); connection.Connect(); viewModelFactory.GetLoginViewModel(windowService, new Settings(), connection).Show(); }
public IOperator TestLogin(string operatorNumber) { IConnection connection = new Connection("", 0); connection.Connect(); IOperator @operator = connection.OperatorEventProcessorService.ChangeOperatorState(new OperatorEventInfo(operatorNumber, EventReason.Login, new HostInfo() {HostName = "ws78"})); return @operator; }