Ejemplo n.º 1
0
        void OpenEmployeePage(int employeeId, object sender)
        {
            Form popup = new StaffPopup(staffList.Find(x => x.Id == employeeId), this);

            popup.StartPosition = FormStartPosition.Manual;
            Point newLocation = (sender as Label).Location;

            newLocation.Offset(500, 50);
            popup.Location = newLocation;
            popup.ShowDialog();
        }
Ejemplo n.º 2
0
 public ExtraConfirmationPopup(Staff employee, StaffPopup opener)
 {
     InitializeComponent();
     employeeToFire = employee;
     this.opener    = opener;
 }