public static void DisplayListWindow <TemplateClass>(BasicListViewModel <TemplateClass> vm) where TemplateClass : class, new() { Window window = new Window(); var tmp = new BasicList(); tmp.DataContext = vm; window.Content = tmp; window.ShowDialog(); }
public EvaluatorWindowViewModel() { this.InitializeStagesNames(); this.DD = new CandidateListDataDeveloper(); this.AllCandidatesViewModel = new BasicListViewModel <CandidateListViewTemplate>(new CandidateListDataDeveloper(), new CandidateDetails(), new BasicListConfiguration(false, true), new BasicDetailsControlConfiguration(true, false, true, false)); this.StageCandidatesViewModel = new BasicListViewModel <CandidateListViewTemplate>(this.DD, new CandidateDetails(), new BasicListConfiguration(false, true), new BasicDetailsControlConfiguration(true, false, true, false)); this.ConfirmedCandidatesViewModel = new BasicListViewModel <CandidateListViewTemplate>(new CandidateListDataDeveloper((byte)Common.Enums.DecisionTypesEnum.Confirmed), new CandidateDetails(), new BasicListConfiguration(false, true), new BasicDetailsControlConfiguration(true, false, true, false)); this.RejectedCandidatesViewModel = new BasicListViewModel <CandidateListViewTemplate>(new CandidateListDataDeveloper((byte)Common.Enums.DecisionTypesEnum.Rejected), new CandidateDetails(), new BasicListConfiguration(false, true), new BasicDetailsControlConfiguration(true, false, true, false)); this.DECandidatesViewModel = new BasicListViewModel <CandidateListViewTemplate>(new CandidateListDataDeveloper((byte)Common.Enums.DecisionTypesEnum.DuringEvaluation), new CandidateDetails(), new BasicListConfiguration(false, true), new BasicDetailsControlConfiguration(true, false, true, false)); this.ApprovedCandidatesViewModel = new BasicListViewModel <CandidateListViewTemplate>(new CandidateListDataDeveloper((byte)Common.Enums.DecisionTypesEnum.Approved), new CandidateDetails(), new BasicListConfiguration(false, true), new BasicDetailsControlConfiguration(true, false, true, false)); }
public BasicListViewPage() { this.InitializeComponent(); DataContext = new BasicListViewModel(); }
public AdministratorWindowViewModel() { this.BasicListViewModel = new BasicListViewModel <PersonListViewTemplate>(new PersonListDataDeveloper(), new Classes.Configurations.BasicListConfiguration(), this.DetailsClick); }