// profili saradnika public async void CollaboratorProfileTypeChosenAsync(object sender, SelectionChangedEventArgs e) { string type = (string)e.AddedItems.ElementAt(0); await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { CreatingStudentProfile = type == "Student"; CreatingFacultyMemberProfile = !CreatingStudentProfile; ProfileDescription = string.Empty; StudentProfileInputModel = new StudentProfileInputModel(); FacultyMemberProfileInputModel = new FacultyMemberProfileInputModel(); }); }
public async void SaveProject() { if (RequiredProjectFieldsFilled()) { Project project = ProjectInputModel.ToProject(ProjectInputModel); await((App)App.Current).projects.CreateAsync(project); await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => { AddedTags.Clear(); }); ProjectInputModel = new ProjectInputModel(); StudentProfileInputModel = new StudentProfileInputModel(); FacultyMemberProfileInputModel = new FacultyMemberProfileInputModel(); } }
public void Cancel() { ProjectInputModel = new ProjectInputModel(); StudentProfileInputModel = new StudentProfileInputModel(); FacultyMemberProfileInputModel = new FacultyMemberProfileInputModel(); }