예제 #1
0
        private void BtnEmpVacationApprovalDetails_Onclick(object sender, RoutedEventArgs e)
        {
            switch (_viewModel.SelectedTab)
            {
            case "Shift":
                break;

            case "Vacation":
                if (_viewModel.VacationStatusSelfVisibility == Visibility.Visible || _viewModel.SelectedMainRow.EmpId != LoggedUserInfo.Code)
                {
                    var childv = new VacationsChild(_viewModel);
                    childv.Show();
                }
                break;

            case "Excuse":
                if (_viewModel.ExcuseStatusSelfVisibility == Visibility.Visible || _viewModel.SelectedMainRow.EmpId != LoggedUserInfo.Code)
                {
                    var childe = new ExcuseChild(_viewModel);
                    childe.Show();
                }
                break;

            case "Mission":
                if (_viewModel.MissionStatusSelfVisibility == Visibility.Visible || _viewModel.SelectedMainRow.EmpId != LoggedUserInfo.Code)
                {
                    var childm = new MissionsChild(_viewModel);
                    childm.Show();
                }
                break;
            }
        }
예제 #2
0
        private void BtnAddMission_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            var child = new MissionsChild(_viewModel);

            child.Show();
        }