123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using Auth.Models;
- using Avalonia.Styling;
- using ReactiveUI;
- using System.Security.Cryptography.X509Certificates;
- namespace Auth.ViewModels
- {
- public class MainWindowViewModel : ViewModelBase
- {
- string _login = "";
- string _password = "";
- public string Login
- {
- get
- {
- return _login;
- }
- set
- {
- this.RaiseAndSetIfChanged(ref _login, value);
- }
- }
- public string Password
- {
- get
- {
- return _password;
- }
- set
- {
- this.RaiseAndSetIfChanged(ref _password, value);
- }
- }
- public void Knopka()
- {
- data data = new data();
- if (_login == data.login && _password == data.password)
- {
-
-
- }
- else
- {
-
- }
- }
-
- }
- }
|