public static ItemAlerts getInstance() { if (uniqueInstance == null) { uniqueInstance = new ItemAlerts(); } return(uniqueInstance); }
private void btnFoodAlerts2_Click(object sender, EventArgs e) { ItemAlerts it = ItemAlerts.getInstance(); it.refreshExpiredItemsTable(); it.Show(); this.Hide(); }