public ServiceProductsWinController(ServiceProducts serviceProd, ProductWindowPurpose actMode, Form prodWin)
 {
     this.productWindow      = prodWin;
     this.typeOfDataManaging = actMode;
     this.serviceProducts    = serviceProd;
     catchTheControls();
 }
 public FormServiceProductsWindow(ProductQualityPart prod, ProductWindowPurpose mode,
                                  ServiceProducts serviceOfProd, Form parentMain)
 {
     InitializeComponent();
     this.modeTheWindow       = mode;
     this.parentMainWindow    = parentMain;
     controllerProductsWindow = new ServiceProductsWinController(serviceOfProd, mode, this);
     controllerProductsWindow.sendTheQualityData(prod);
     parentMain.Hide();
     this.Show();
 }
 private int tryParseTemp;   //only for having a type-conversion probe
 /// <summary>
 /// constructor in case of production quantity is the matter
 /// </summary>
 /// <param name="prod">the list element of fullrecord</param>
 /// <param name="mode">mark of mode this section</param>
 /// <param name="serviceOfProd"></param>
 public FormServiceProductsWindow(ProductFullRow prod, ProductWindowPurpose mode,
                                  ServiceProducts serviceOfProd, Form parent)
 {
     InitializeComponent();
     this.modeTheWindow       = mode;
     this.parentMainWindow    = parent;
     controllerProductsWindow = new ServiceProductsWinController(serviceOfProd, mode, this);
     controllerProductsWindow.sendTheStrippingData(prod);
     parent.Hide();
     this.Show();
 }