/// <summary> /// Handles the Click event of the btnGiftcard100 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void btnGiftcard100_Click(object sender, EventArgs e) { InputGiftcardCode inputGiftcardCodeForm = new InputGiftcardCode(3); inputGiftcardCodeForm.parentForm = this.parentForm; inputGiftcardCodeForm.parentForm2 = this; inputGiftcardCodeForm.ShowDialog(); //MyMessageBox.ShowBox("NOT AVAILABLE", "ERROR"); //return; }
/// <summary> /// Handles the Click event of the btnGiftcard50 control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void btnGiftcard50_Click(object sender, EventArgs e) { InputGiftcardCode inputGiftcardCodeForm = new InputGiftcardCode(2); inputGiftcardCodeForm.parentForm = this.parentForm; inputGiftcardCodeForm.parentForm2 = this; inputGiftcardCodeForm.ShowDialog(); /*parentForm.richTxtUpc.Text = "B4UGIFTCARD2"; * * parentForm.Enabled = true; * this.Close(); * parentForm.btnInput_Click(null, null); * parentForm.dataGridView1.SelectedCells[1].Value = gcCode.ToUpper() + " - GIFTCARD $50"; * parentForm.richTxtUpc.Select(); * parentForm.richTxtUpc.Focus();*/ }