Ejemplo n.º 1
0
        // 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();
            });
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
 public void Cancel()
 {
     ProjectInputModel              = new ProjectInputModel();
     StudentProfileInputModel       = new StudentProfileInputModel();
     FacultyMemberProfileInputModel = new FacultyMemberProfileInputModel();
 }