private void ExecuteOpenProject(object parameter) { try { if (parameter != null) { object[] values = new object[2]; values = parameter as object[]; int id = (int)values[0]; if (id > 0) { IMessageBoxService msgbox = new MessageBoxService(); //if return value is true then Refresh list if (msgbox.OpenProjectDlg((System.Windows.Window)values[1], id)) { FilterData(); SetPopupFilters(excludedcols, Data); ApplyPopupFilter(); } msgbox = null; } } } catch { } }
private void ExecuteOpenProject(object parameter) { try { if (parameter != null) { object[] values = new object[2]; values = parameter as object[]; int id = (int)values[0]; if (id > 0) { IMessageBoxService msgbox = new MessageBoxService(); //if return value is true then Refresh list if (msgbox.OpenProjectDlg((Window)values[1], id)) { FilterData(); //if (SalesFunnelSelected) //{ SetPopupFilters(excludedcols, SalesFunnel); ApplyPopupFilter(); //} //else //{ // SetNewBusinessPopupFilters(excludednewbusinesscols, NewBusiness); // ApplyNewBusinessPopupFilter(); //} } msgbox = null; } } } catch { } }
private void OpenNewProject(object parameter) { try { ExecuteUpdateActivities(); IMessageBoxService msgbox = new MessageBoxService(); if (msgbox.OpenProjectDlg((Window)parameter, 0)) { FilterData(); SetPopupFilters(excludedcols, UserProjects); ApplyPopupFilter(); } msgbox = null; } catch { } }
private void ExecuteOpenProject(object parameter) { try { if (parameter != null) { int id = ProjectLabel; IMessageBoxService msgbox = new MessageBoxService(); bool result = msgbox.OpenProjectDlg((Window)parameter, id); //if return value is true then Refresh list if (result == true) { GetData(); } msgbox = null; } } catch { } }
private void ExecuteOpenMissingEPProject(object parameter) { try { if (parameter != null) { IMessageBoxService msgbox = new MessageBoxService(); int id = SelectedMissingEPProject.ProjectID; bool result = msgbox.OpenProjectDlg((Window)parameter, id); //if return value is true then Refresh list if (result == true) { RequiringCompletion = PTMainViewModel.LoadFilteredColl(GetProjectsRequiringCompletion); MissingEPs = PTMainViewModel.LoadFilteredColl(GetMissingEPs); RequiringCompletionLabel = MakeLabel(requiringcompletionlabel, RequiringCompletion.Count); } msgbox = null; } } catch { } }
private void ExecuteOpenProject(object parameter) { if (parameter != null) { if (parameter != null) { if (parameter.GetType().Equals(typeof(DataRowView))) { int ID = (int)(parameter as DataRowView).Row["ID"]; IMessageBoxService _msgboxcommand = new MessageBoxService(); bool result = _msgboxcommand.OpenProjectDlg(ID); //if return value is true then Refresh list if (result == true) { GetData(); } _msgboxcommand = null; } } } }
private void ExecuteOpenProjectDetails(object parameter) { try { if (parameter != null) { int id = 0; //if(SalesFunnelSelected) id = (int)SelectedProject["ProjectID"]; //else // id = (int)SelectedNewBusProject["ProjectID"]; if (id > 0) { IMessageBoxService msgbox = new MessageBoxService(); //if return value is true then Refresh list if (msgbox.OpenProjectDlg((Window)parameter, id)) { FilterData(); //if (SalesFunnelSelected) //{ SetPopupFilters(excludedcols, SalesFunnel); ApplyPopupFilter(); //} //else //{ // SetNewBusinessPopupFilters(excludednewbusinesscols, NewBusiness); // ApplyNewBusinessPopupFilter(); //} } msgbox = null; } } } catch { } }
private void ExecuteOpenMissingEPProject(object parameter) { try { if (parameter != null) { IMessageBoxService msgbox = new MessageBoxService(); int id = SelectedMissingEPProject.ProjectID; bool result = msgbox.OpenProjectDlg((Window)parameter, id); PTMVM.RequiringCompletion = PTMainViewModel.LoadFilteredColl(GetProjectsRequiringCompletion); PTMVM.IncompleteEPs = PTMainViewModel.LoadFilteredColl(GetIncompleteEPs); PTMVM.MissingEPs = PTMainViewModel.LoadFilteredColl(GetMissingEPs); RequiringCompletionLabel = MakeLabel(requiringcompletionlabel, PTMVM.RequiringCompletion.Count); IncompleteEvaluationPlansLabel = MakeLabel(incompleteepslabel, PTMVM.IncompleteEPs.Count); MissingEvaluationPlansLabel = MakeLabel(missingepslabel, PTMVM.MissingEPs.Count); SetTabVisibility(); msgbox = null; } } catch { } }