private void AuthButtonCard_Click(object sender, EventArgs e) { object obj = ((MenuItem)sender).Tag; if (obj is POSCard) { Auth((POSCard)obj); } }