コード例 #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();
 }
コード例 #2
0
 private void planeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         HideAllChilds();
         if (planeForm == null)
         {
             planeForm = new PlaneForm(_planeService);
         }
         planeForm.MdiParent       = this;
         planeForm.FormBorderStyle = FormBorderStyle.None;
         this.Size = planeForm.Size;
         planeForm.StartPosition = FormStartPosition.Manual;
         planeForm.Show();
     }
     catch (Exception ex)
     {
         throw;
     }
 }