예제 #1
0
        private void AttendanceView(object sender, RoutedEventArgs e)
        {
            this.Close();
            var view = new AttendenceView(_employee, new AttendanceViewModel(_vm._context));

            view.Show();
        }
예제 #2
0
        private void ViewAttendance(object sender, RoutedEventArgs e)
        {
            var index = EmployeesList.SelectedIndex;

            if (index != -1)
            {
                var employee = _EmployeeDict[index];
                var view     = new AttendenceView(employee, new AttendanceViewModel(_vm._context), 1);
                view.Show();
            }
            else
            {
                MessageBox.Show("Select an Employee");
            }
        }