Example #1
0
 public MainForm(IPlaneBookService _planeBookService, IPlaneService _planeService, ICargoService _cargoService, ICustomerService _customerService)
 {
     InitializeComponent();
     this._planeBookService = _planeBookService;
     this._planeService     = _planeService;
     this._cargoService     = _cargoService;
     this._customerService  = _customerService;
     this.customerForm      = null;
     this.planeForm         = null;
     this.cargoForm         = null;
     this.bookingForm       = null;
     LoadBookForm();
 }
Example #2
0
 private void cargoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         HideAllChilds();
         if (cargoForm == null)
         {
             cargoForm = new CargoForm(_cargoService);
         }
         cargoForm.MdiParent       = this;
         cargoForm.FormBorderStyle = FormBorderStyle.None;
         this.Size = cargoForm.Size;
         cargoForm.StartPosition = FormStartPosition.Manual;
         cargoForm.Show();
     }
     catch (Exception ex)
     {
         throw;
     }
 }