private void ExecuteOpenEP(object parameter) { try { if (parameter != null) { object[] values = new object[2]; values = parameter as object[]; int projectid = (int)values[0]; if (projectid > 0 && SelectedEP != null) { int evalplanid = (int)SelectedEP["ID"]; if (evalplanid > 0) { IMessageBoxService msgbox = new MessageBoxService(); //if return value is true then Refresh list if (msgbox.EvaluationPlanDialog((System.Windows.Window)values[1], evalplanid, projectid)) { FilterData(); SetPopupFilters(excludedcols, EPS); ApplyPopupFilter(); } msgbox = null; } } } } catch { } }
private void ExecuteOpenIncompleteEP(object parameter) { try { if (parameter != null) { IMessageBoxService msgbox = new MessageBoxService(); int id = SelectedIncompleteEPProject.ID; int projectid = SelectedIncompleteEPProject.ProjectID; bool result = msgbox.EvaluationPlanDialog((Window)parameter, id, projectid); //if return value is true then Refresh list PTMVM.IncompleteEPs = PTMainViewModel.LoadFilteredColl(GetIncompleteEPs); IncompleteEvaluationPlansLabel = MakeLabel(incompleteepslabel, PTMVM.IncompleteEPs.Count); SetTabVisibility(); msgbox = null; } } catch { } }
private void ExecuteOpenIncompleteEP(object parameter) { try { if (parameter != null) { IMessageBoxService msgbox = new MessageBoxService(); int id = SelectedIncompleteEPProject.ID; int projectid = SelectedIncompleteEPProject.ProjectID; bool result = msgbox.EvaluationPlanDialog((Window)parameter, id, projectid); //if return value is true then Refresh list if (result == true) { IncompleteEPs = PTMainViewModel.LoadFilteredColl(GetIncompleteEPs); } msgbox = null; } } catch { } }