private void inventorynnotificationsBttn_Click(object sender, EventArgs e)
 {
     if (inventorynotificationsform.IsDisposed)
     {
         inventorynotificationsform = new inventorynotificationsFrm();
         inventorynotificationsform.refreshBttn.Click += refreshBttn_Click;
     }
     LoadNewNotifications();
     LoadOldNotifications();
     inventorynotificationsform.Show(this);
 }
        private void adminpanelFrm_Load(object sender, EventArgs e)
        {
            LoadUsers();

            if (inventorynotificationsform == null)
            {
                inventorynotificationsform = new inventorynotificationsFrm();
                inventorynotificationsform.refreshBttn.Click += refreshBttn_Click;
            }

            LoadNewNotifications();
            LoadOldNotifications();
        }