コード例 #1
0
        public TextEntry()
        {
            InitializeComponent();

            m_view      = new TextEntryViewModel();
            DataContext = m_view;
            InitializeApp();
        }
コード例 #2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public SettingsViewModel()
        {
            // Create First Name
            FirstName = new TextEntryViewModel
            {
                Label        = "First Name",
                OriginalText = mLoadingText,
                CommitAction = SaveFirstNameAsync
            };

            // Create Last Name
            LastName = new TextEntryViewModel
            {
                Label        = "Last Name",
                OriginalText = mLoadingText,
                CommitAction = SaveLastNameAsync
            };

            // Create Username
            Username = new TextEntryViewModel
            {
                Label        = "Username",
                OriginalText = mLoadingText,
                CommitAction = SaveUsernameAsync
            };

            // Create Password
            Password = new PasswordEntryViewModel
            {
                Label        = "Password",
                FakePassword = "******",
                CommitAction = SavePasswordAsync
            };

            // Create Email
            Email = new TextEntryViewModel
            {
                Label        = "Email",
                OriginalText = mLoadingText,
                CommitAction = SaveEmailAsync
            };

            // Create commands
            OpenCommand          = new RelayCommand(Open);
            CloseCommand         = new RelayCommand(Close);
            LogoutCommand        = new RelayCommand(async() => await LogoutAsync());
            ClearUserDataCommand = new RelayCommand(ClearUserData);
            LoadCommand          = new RelayCommand(async() => await LoadAsync());
            SaveFirstNameCommand = new RelayCommand(async() => await SaveFirstNameAsync());
            SaveLastNameCommand  = new RelayCommand(async() => await SaveLastNameAsync());
            SaveUsernameCommand  = new RelayCommand(async() => await SaveUsernameAsync());
            SaveEmailCommand     = new RelayCommand(async() => await SaveEmailAsync());

            // TODO: Get from localization
            LogoutButtonText = "Logout";
        }
コード例 #3
0
ファイル: SettingsDesignModel.cs プロジェクト: papan01/MonkaS
 /// <summary>
 /// Default constructor
 /// </summary>
 public SettingsDesignModel()
 {
     Name = new TextEntryViewModel {
         Label = "Name", OriginalText = "Louis Peng"
     };
     Username = new TextEntryViewModel {
         Label = "Username", OriginalText = "Louis"
     };
     Password = new PasswordEntryViewModel {
         Label = "Password", FakePassword = "******"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }
コード例 #4
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SettingsDesignModel()
 {
     Name = new TextEntryViewModel {
         Label = "Name", OriginalText = "Good Boi"
     };
     Username = new TextEntryViewModel {
         Label = "Username", OriginalText = "goodboi"
     };
     Password = new PasswordEntryViewModel {
         Label = "Password", FakePassword = "******"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }
コード例 #5
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SettingsDesignModel()
 {
     Name = new TextEntryViewModel {
         Label = "Name", OriginalText = "Vlad Kontsevich"
     };
     UserName = new TextEntryViewModel {
         Label = "UserName", OriginalText = "Vald"
     };
     Password = new PasswordEntryViewModel {
         Label = "Password", FakePassword = "******"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }
コード例 #6
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SettingsDesignModel()
 {
     Name = new TextEntryViewModel {
         Label = "Name", OriginalText = "Suvan"
     };
     Username = new TextEntryViewModel {
         Label = "Username", OriginalText = "suvanl"
     };
     Password = new TextEntryViewModel {
         Label = "Password", OriginalText = "************"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }
コード例 #7
0
ファイル: SettingsDesignModel.cs プロジェクト: quanljh/Quan
 /// <summary>
 /// Default constructor
 /// </summary>
 public SettingsDesignModel()
 {
     Name = new TextEntryViewModel {
         Label = "Name", OriginalText = "quanljh"
     };
     Username = new TextEntryViewModel {
         Label = "Username", OriginalText = "quan"
     };
     Password = new PasswordEntryViewModel {
         Label = "Password", FakePassword = "******"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }
コード例 #8
0
 public SettingsDesignModel()
 {
     Name = new TextEntryViewModel {
         Label = "Name", OriginalText = "Luke Malpass"
     };
     Username = new TextEntryViewModel {
         Label = "Username", OriginalText = "luke"
     };
     Password = new TextEntryViewModel {
         Label = "Password", OriginalText = "********"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }
コード例 #9
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public SettingsDesignModel()
 {
     Name = new TextEntryViewModel {
         Label = "Name", OriginalText = "Mariana Kovalchuk"
     };
     Username = new TextEntryViewModel {
         Label = "Username", OriginalText = "Mariana"
     };
     Password = new TextEntryViewModel {
         Label = "Password", OriginalText = "*******"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }
コード例 #10
0
 public SettingsDesignViewModel()
 {
     EmailViewModel = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
     NameViewModel = new TextEntryViewModel {
         Label = "Name", OriginalText = "Bob Dobbs"
     };
     PasswordViewModel = new PasswordEntryViewModel {
         Label = "Password"
     };
     UserNameViewModel = new TextEntryViewModel {
         Label = "Username", OriginalText = "Bob"
     };
     LogoutButtonText = "Logout";
 }
コード例 #11
0
 public SettingsDesignModel()
 {
     FirstName = new TextEntryViewModel {
         Label = "Fist Name", OriginalText = "Rodion"
     };
     LastName = new TextEntryViewModel {
         Label = "Last Name", OriginalText = "Gyrbu"
     };
     Username = new TextEntryViewModel {
         Label = "Username", OriginalText = "rgyrbu"
     };
     Password = new PasswordEntryViewModel {
         Label = "Password", FakePassword = "******"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }
コード例 #12
0
 /// <summary>
 /// TODO: normal information
 /// </summary>
 public UserPersonalAreaViewModel()
 {
     FullName = new TextEntryViewModel
     {
         Label        = "ФИО",
         OriginalText = (IoC.Application_Work.Current_User as Client)?.FullName,
         MaxLength    = 50
     };
     Login = new TextEntryViewModel
     {
         Label        = "Логин",
         OriginalText = (IoC.Application_Work.Current_User as Client)?.Login,
         MaxLength    = 20
     };
     PhoneNumber = new TextEntryViewModel
     {
         Label        = "Номер телефона",
         OriginalText = (IoC.Application_Work.Current_User as Client)?.PhoneNumber,
         MaxLength    = 11
     };
     Email = new TextEntryViewModel
     {
         Label        = "Электронная почта",
         OriginalText = (IoC.Application_Work.Current_User as Client)?.Email,
         MaxLength    = 50
     };
     CompanyName = new TextEntryViewModel
     {
         Label        = "Название компании",
         OriginalText = (IoC.Application_Work.Current_User as Client)?.CompanyName,
         MaxLength    = 20
     };
     Password = new PasswordEntryViewModel
     {
         Label        = "Password",
         FakePassword = "******"
     };
 }
コード例 #13
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SettingsDesignModel()
 {
     FirstName = new TextEntryViewModel {
         Label = "Imię", OriginalText = "Jessica"
     };
     LastName = new TextEntryViewModel {
         Label = "Nazwisko", OriginalText = "Stalon"
     };
     Identify = new TextEntryViewModel {
         Label = "Identyfikator", OriginalText = "JS12321"
     };
     Type = new TextEntryViewModel {
         Label = "Posada", OriginalText = "Lekarz"
     };
     Specialize = new TextEntryViewModel {
         Label = "Specjalizacja", OriginalText = "Urolog"
     };
     PwdNumber = new TextEntryViewModel {
         Label = "Numer PWD", OriginalText = "pwd135"
     };
     Password = new PasswordEntryViewModel {
         Label = "Hasło", FakePassword = "******"
     };
 }