private void nuevoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var newSupplierForm = new NewSupplierForm()
     {
         SupplierDataServices = _shoesDataServices.SupplierServices
     };
     newSupplierForm.ShowDialog();
 }
Beispiel #2
0
 private void saveNewSupplierToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.Companies != null)
     {
         var form = new NewSupplierForm(this.Companies, this.Suppliers, this.IndividualEntities);
         form.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("You need to save at least one company before adding suppliers", "No companies were added yet", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }