public AddProductWin(IProductRequester caller) { InitializeComponent(); callingWin = caller; RefreshList(); }
/// <summary> /// Overloaded constructor that recieves data from the calling form or uses the default parameter values /// </summary> /// <param name="caller">Parameter used to call this form and request data by forms that implement IProductRequester interface</param> /// <param name="searchedName">The text by we search for a product</param> public SelectProductForm(IProductRequester caller = null, string searchedName = "") { InitializeComponent(); if (caller != null) { callingForm = caller; } ProductList = RMS_Logic.SelectProduct.GetMatchingProducts(searchedName); }