mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
Password generator page. Password generation service. Tests. Renamed some settings constants.
This commit is contained in:
35
src/App/Models/Page/PasswordGeneratorPageModel.cs
Normal file
35
src/App/Models/Page/PasswordGeneratorPageModel.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Bit.App.Models.Page
|
||||
{
|
||||
public class PasswordGeneratorPageModel : INotifyPropertyChanged
|
||||
{
|
||||
private string _password = " ";
|
||||
private string _length;
|
||||
|
||||
public PasswordGeneratorPageModel() { }
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public string Password
|
||||
{
|
||||
get { return _password; }
|
||||
set
|
||||
{
|
||||
_password = value;
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(nameof(Password)));
|
||||
}
|
||||
}
|
||||
|
||||
public string Length
|
||||
{
|
||||
get { return _length; }
|
||||
set
|
||||
{
|
||||
_length = value;
|
||||
PropertyChanged(this, new PropertyChangedEventArgs(nameof(Length)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user