コード例 #1
0
        private void btn_remove_manager_Click(object sender, EventArgs e)
        {
            RemoveManagerPanel removeManagerPanel = new RemoveManagerPanel(id);

            removeManagerPanel.ShowDialog();
            this.Hide();
        }
コード例 #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();
         }
     }
 }