示例#1
0
 public Register()
 {
     InitializeComponent();
     Ref_PersonViewModel     = new ViewModel.PersonViewModel();
     Ref_Validation          = new Validation();
     txtPassReg.PasswordChar = '*';
 }
        public frmEdit(Int32 id, string title, string nationalCod, string givenName, string familyName, string country,
                       DateTime dateOfBirth, string email, string mobileNumber, string username,
                       string password, string address)
        {
            InitializeComponent();
            Ref_PersonViewModel = new ViewModel.PersonViewModel();

            txtId.Text            = System.Convert.ToString(id);
            cmbTitle.SelectedItem = title;
            txtNationalCode.Text  = nationalCod;
            txtName.Text          = givenName;
            txtSurname.Text       = familyName;
            txtCountry.Text       = country;
            dtpBirth.Value        = dateOfBirth;
            txtEmailAddress.Text  = email;
            txtMobilNumber.Text   = mobileNumber;
            txtUsername.Text      = username;
            txtPassword.Text      = password;
            txtAddress.Text       = address;
        }
示例#3
0
 public frmAdd()
 {
     InitializeComponent();
     Ref_PersonViewModel = new ViewModel.PersonViewModel();
 }
示例#4
0
 public Form1()
 {
     InitializeComponent();
     Ref_PersonViewModel      = new ViewModel.PersonViewModel();
     txtPassword.PasswordChar = '*';
 }
示例#5
0
 public Edit()
 {
     InitializeComponent();
     Ref_ViewModel = new ViewModel.PersonViewModel();
 }
 public Form1()
 {
     InitializeComponent();
     Ref_PersonViewModel = new ViewModel.PersonViewModel();
 }