Ejemplo n.º 1
0
        private void btn_remove_manager_Click(object sender, EventArgs e)
        {
            RemoveManagerPanel removeManagerPanel = new RemoveManagerPanel(id);

            removeManagerPanel.ShowDialog();
            this.Hide();
        }
Ejemplo n.º 2
0
 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();
         }
     }
 }