Esempio n. 1
0
 public FormCustomerMaintenance()
 {
     InitializeComponent();
     lblTitle.Text     = "Add new customer";
     btnSave.Text      = "Add";
     btnSave.BackColor = Settings.Colors.Confirm;
     ConstructorUsed   = ConstructorUsed.Empty;
 }
Esempio n. 2
0
        public FormCustomerMaintenance(Customer customer)
        {
            InitializeComponent();
            ConstructorUsed = ConstructorUsed.WithVar;
            lblTitle.Select();//Not focus on text boxes when starting the form.
            lblTitle.Text     = "Modificar Cliente";
            btnSave.Text      = "Guadar";
            btnSave.BackColor = Settings.UIAppearance.StyleColor;

            txtNames.Text   = customer.Names;
            txtEmail.Text   = customer.Email;
            txtPhone.Text   = customer.PhoneNumber;
            txtAddress.Text = customer.StreetAddres;
        }