Exemple #1
0
        public NewCustomer(BindingNavigator customersBindingNavigator1)
        {
            bindingNavigatorCustomers = customersBindingNavigator1;

            // Load application icon
            this.Icon = Properties.Resources.app;

            InitializeComponent();

            newCustomerTextboxes["LAST_NAME"]    = lastName_textbox;
            newCustomerTextboxes["FIRST_NAME"]   = firstName_textbox;
            newCustomerTextboxes["AFM"]          = afm_textbox;
            newCustomerTextboxes["DOY"]          = doy_textbox;
            newCustomerTextboxes["ADDRESS"]      = address_textbox;
            newCustomerTextboxes["CITY"]         = city_textbox;
            newCustomerTextboxes["PHONE_NUMBER"] = phone_textbox;
            newCustomerTextboxes["PHOTO"]        = photo_textbox;

            NewCustomerController.syncNewCustomerForm(pictureBox1, removePhoto_buton, photo_textbox);
        }
Exemple #2
0
 private void removePhoto_buton_Click(object sender, EventArgs e)
 {
     NewCustomerController.removePhoto(pictureBox1);
     photo_textbox.Text = Models.Container.EMPTY;
     NewCustomerController.syncNewCustomerForm(pictureBox1, removePhoto_buton, photo_textbox);
 }
Exemple #3
0
 private void choosePhoto_button_Click(object sender, EventArgs e)
 {
     NewCustomerController.ShowPhotoDialogChooser(openFileDialog1, photo_textbox);
     NewCustomerController.loadPhotoAfterDialog(pictureBox1, photo_textbox.Text);
     NewCustomerController.syncNewCustomerForm(pictureBox1, removePhoto_buton, photo_textbox);
 }
Exemple #4
0
 private void addCustomer_button_Click(object sender, EventArgs e)
 {
     NewCustomerController.AddNewCustomer(newCustomerTextboxes, birthDate_picker.Value.Date, comments_richTextbox, bindingNavigatorCustomers, this);
 }