/// <summary> /// bar code printing /// </summary> private void BarCodePrinting() { DialogResult dr = MessageBox.Show("New Inventory Entered - Print BARCODES now?", "New Inventory", MessageBoxButtons.YesNo); if (dr == DialogResult.Yes) { //spawn the print dialog for these current items BarCodePrinting childForm = new BarCodePrinting(); childForm.MdiParent = this.MdiParent; childForm.Show(); } this.Close(); }
private void cmdSave_Click(object sender, EventArgs e) { if (DoValidations() == true) { if (SavePricingData() == true) { DialogResult CheckDR = MessageBox.Show("Pricing Completed - Print Bar Codes Now?", "Pricing", MessageBoxButtons.YesNo); if (CheckDR == DialogResult.Yes) { if (SaveWaitingToPrint() == true) { BarCodePrinting newchild = new BarCodePrinting(); newchild.MdiParent = this.MdiParent; newchild.Show(); } else { MessageBox.Show("Fatal BarCode Save Error Happened!", "Pricing Error", MessageBoxButtons.OK); this.Close(); } } else { this.Close(); } } else { MessageBox.Show("Fatal Pricing Error Happened!", "Pricing Error", MessageBoxButtons.OK); this.Close(); } } else { MessageBox.Show("Please correct data", "Pricing", MessageBoxButtons.OK); } }
private void printBarCodesToolStripMenuItem_Click(object sender, EventArgs e) { BarCodePrinting childForm = new BarCodePrinting(); childForm.MdiParent = this; childForm.Show(); }