public dataProdukForm(int moduleID, ProductBarcodeSelectorForm thisParentForm) { InitializeComponent(); originModuleID = moduleID; parentBarcodeForm = thisParentForm; // accessed from other form other than Master -> Data Produk // it means that this form is only displayed for browsing / searching purpose only newButton.Visible = false; }
public dataProdukForm(int moduleID, ProductBarcodeSelectorForm thisParentForm, string productID = "", string productName = "", int rowIndex = -1) { InitializeComponent(); originModuleID = moduleID; parentBarcodeForm = thisParentForm; // accessed from other form other than Master -> Data Produk // it means that this form is only displayed for browsing / searching purpose only newButton.Visible = false; namaProdukTextBox.Text = productName; kodeProductTextBox.Text = productID; selectedRowIndex = rowIndex; }