private void sendReceiptBtn_Click(object sender, EventArgs e) { label2.Visible = true; swich = true; printreceiptTab.swich = false; MessageTab msg = new MessageTab(); msg.ShowDialog(); }
private void sendEmailBtn_Click(object sender, EventArgs e) { if (checkReceipt == true) { swich = true; sendReceiptTab.swich = false; MessageTab msg = new MessageTab(); msg.ShowDialog(); } else { MessageBox.Show("Please Check the recipt for an employee first."); } }