public void Init2() { metroTextBox1.Clear(); EmployeeData ed = new EmployeeData(); metroGrid1.DataSource = ed.GetEmployeeShowList(); ManagerData md = new ManagerData(); metroGrid2.DataSource = md.GetManagerShowList(); metroGrid4.DataSource = md.GetManagerOwnInfo(this.manId); OrderListData od = new OrderListData(); metroGrid3.DataSource = od.GetOrderShowList(); }
public void Init(string me) { ManagerData md = new ManagerData(); M_name.Clear(); M_mail.Clear(); dataGridView1.DataSource = md.GetManagerOwnInfo(me); if (!bunifuGradientPanel2.Controls.Contains(AdminHome.Instance)) { bunifuGradientPanel2.Controls.Add(AdminHome.Instance); AdminHome.Instance.Dock = DockStyle.Fill; AdminHome.Instance.BringToFront(); } else { AdminHome.Instance.BringToFront(); } }