Ejemplo n.º 1
0
        private void LeaveButton_Click(object sender, RoutedEventArgs e)
        {
            EmployeeLeaveDetailsPL leaveDetailsPL = new EmployeeLeaveDetailsPL();

            this.Close();
            //  leaveDetailsPL.LeaveAproveRejectBtn.Visibility = Visibility.Hidden;
            leaveDetailsPL.Show();
        }
        private void MyWindow_Loaded(object sender, RoutedEventArgs e)
        {
            //txtEmployeeId.Text = LoginEntity.UserID.ToString();
            txtEmployeeId.Text = EmployeeEntity.EmployeeID.ToString();
            // txtLeaveId.Text = "10";
            EmployeeLeaveDetailsPL employeeLeaveDetailsPL = new EmployeeLeaveDetailsPL();

            txtLeaveBalance.Text = employeeLeaveDetailsPL.checkBalance().ToString();
            txtManagerId.Text    = EmployeeEntity.ManagerID.ToString();
            // txtNoOfDays.Text = NoOfDays().ToString();


            Console.WriteLine("window loaded");
        }