public SsoDialogView(ISsoDialogViewModel viewModel)
        {
            LogInWithPasscodeCommand = new AsyncDelegatingCommand(viewModel.LoginWithPasscodeAsync, viewModel.CanLoginWithPasscode);

            DataContext = viewModel;

            InitializeComponent();

            MouseDown += Window_MouseDown;
        }
コード例 #2
0
        public LoginViewModel(IServiceProvider services)
            : base(services)
        {
            SkipSsl = true;

            ApiAddressIsValid = true;

            _tasExplorer = services.GetRequiredService <ITasExplorerViewModel>();
            _ssoDialog   = services.GetRequiredService <ISsoDialogViewModel>();
        }