public MainViewModel(IWorkspaceAreaViewModel workspaceAreaViewModel, IConnection connection, IDialogService dialogService, IAppSettings appSettings, ObjectInfoViewModel objectInfoViewModel) { this.workspaceAreaViewModel = workspaceAreaViewModel; this.connection = connection; this.dialogService = dialogService; this.appSettings = appSettings; this.objectInfoViewModel = objectInfoViewModel; LoginCommand = base.AddNewCommand(new ActionCommand(Login)); LogoutCommand = base.AddNewCommand(new ActionCommand(Logout)); OpenObjectInfoCommand = base.AddNewCommand(new ActionCommand(OpenObjectInfo)); }