Ejemplo n.º 1
0
 /// <summary>
 /// Gets the content of the dock.
 /// </summary>
 /// <param name="formId">The form id.</param>
 /// <returns></returns>
 /// Created by SMK 
 private IDockContent GetDockContent(string formId)
 {
     IDockContent doc = null;
     switch (formId)
     {
         case Config.FORM_CUSTOMER_LIST:
             doc = new FrmCustomerList();
             break;
         case Config.FORM_MANUFACTURE_LIST:
             doc = new FrmManufactureList();
             break;
         case Config.FORM_CAR_CATEGORY_LIST:
             doc = new FrmCarCategoryList();
             break;
         case Config.FORM_CAR_LIST:
             doc = new FrmCarList();
             break;
         case Config.FORM_PARTNER_INSURANCE_LIST:
             doc = new FrmInsuranceCompanyList();
             break;
         case Config.FORM_ESTIMATION_LIST:
             doc = new FrmEstimationList();
             break;
         case Config.FORM_ITEM_LIST:
             doc = new FrmItemList();
             break;
         case Config.FORM_VENDER_LIST:
             doc = new FrmVenderList();
             break;
         case Config.FORM_MERTERIAL_LIST:
             doc = new FrmMeterialList();
             break;
         case Config.FORM_CAR_ESTIMATION:
             doc = new FrmCarEstimation(this);
             break;
         default:
             break;
     }
     return doc;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Handles the Click event of the mnuItemEstimate control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 /// Created by SMK 
 private void mnuItemEstimate_Click(object sender, EventArgs e)
 {
     if (gvCar.Row > 0)
     {
         var id = (Guid)gvCar.Rows[gvCar.Row]["Id"];
         var frmEst = new FrmCarEstimation(this, id);
         frmEst.Show();
     }
 }