private void BtnCritical_Click(object sender, EventArgs e)
 {
     if (!AdminAdministrator.Instance.PnlContainer.Controls.ContainsKey("AdminReportCritical"))
     {
         AdminReportCritical critical = new AdminReportCritical();
         critical.Dock = DockStyle.Fill;
         AdminAdministrator.Instance.PnlContainer.Controls.Add(critical);
     }
     AdminAdministrator.Instance.PnlContainer.Controls["AdminReportCritical"].BringToFront();
     AdminAdministrator.Instance.BackToReportsButton.Visible  = true;
     AdminAdministrator.Instance.BackToReportsButton.Location = new System.Drawing.Point(8, 7);
 }
 public AdminPreviewCriticalProducts(AdminReportCritical port)
 {
     InitializeComponent();
     cn  = new SqlConnection(dbcon.MyConnection());
     rep = port;
 }