Exemplo n.º 1
0
        private void mtReports_Click(object sender, EventArgs e)
        {
            ReportsControl reportControl = new ReportsControl()
            {
                Dock = DockStyle.Fill
            };

            MainContainer.Controls.Clear();
            MainContainer.Controls.Add(reportControl);
        }
Exemplo n.º 2
0
 private void ClearAllToReports()
 {
     if (currentemployee.Id > 0)
     {
         if (StartupStackPanel.Children.Count != 1)
         {
             StartupStackPanel.Children.RemoveAt(1);
         }
         ReportsControl reportscontrol = new ReportsControl(currentemployee.Id);
         StartupStackPanel.Children.Add(reportscontrol);
     }
     else
     {
         MessageBox.Show("Select Employee First");
     }
 }