private void BtnTopSelling_Click(object sender, EventArgs e)
 {
     if (!AdminAdministrator.Instance.PnlContainer.Controls.ContainsKey("AdminReportsTopSelling"))
     {
         AdminReportsTopSelling top = new AdminReportsTopSelling();
         top.Dock = DockStyle.Fill;
         AdminAdministrator.Instance.PnlContainer.Controls.Add(top);
     }
     AdminAdministrator.Instance.PnlContainer.Controls["AdminReportsTopSelling"].BringToFront();
     AdminAdministrator.Instance.BackToReportsButton.Visible  = true;
     AdminAdministrator.Instance.BackToReportsButton.Location = new System.Drawing.Point(8, 7);
 }
Beispiel #2
0
 public AdminPreviewTopSelling(AdminReportsTopSelling port)
 {
     InitializeComponent();
     cn  = new SqlConnection(dbcon.MyConnection());
     rep = port;
 }