private void btn_remove_manager_Click(object sender, EventArgs e) { RemoveManagerPanel removeManagerPanel = new RemoveManagerPanel(id); removeManagerPanel.ShowDialog(); this.Hide(); }
public ManagerPanel(string id) { Console.WriteLine("panel"); this.id = id; removeManagerPanel = new RemoveManagerPanel(id); removeMasterPanel = new RemoveMasterPanel(id); InitializeComponent(); if (id != "") { mng = Manager.SearchManager(id).info; if (mng != null) { managername.Text = mng.firstName + " " + mng.lastName; managerid.Text = mng.id.ToString(); } } }