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); }
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); }
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); }