Ejemplo n.º 1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            string value = NavigationContext.QueryString["summary"];

            string[] tab = value.Split(new char[] { '/' });
            this.DataContext = new StudentsListPageViewModel(LibrusFactory.CreateLibrusManager(), tab[0], tab[1]);
        }
Ejemplo n.º 2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            string value = NavigationContext.QueryString["ID"];

            string[] tab = value.Split(new char[] { '/' });
            int      id  = Convert.ToInt32(tab[0]);

            this.DataContext = new InformationAboutPresencesViewModel(LibrusFactory.CreateLibrusManager(), id, tab[1]);
        }
Ejemplo n.º 3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            string value = string.Empty;

            if (NavigationContext.QueryString.TryGetValue("msg", out value))
            {
                string[] tab = value.Split(new char[] { '/' });
                this.DataContext = new PresencePageViewModel(LibrusFactory.CreateLibrusManager(), tab[0], tab[1], tab[2]);
            }
            if (this.State.ContainsKey("presences"))
            {
                string[] tab = ((string)this.State["presences"]).Split(new char[] { '/' });
                int      i   = 0;
                foreach (var p in this.ViewModel.Presences)
                {
                    p.Present = Convert.ToBoolean(tab[i]);
                    i++;
                }
            }
        }
Ejemplo n.º 4
0
 public SelectionPage()
 {
     InitializeComponent();
     this.manager     = LibrusFactory.CreateLibrusManager();
     this.DataContext = new SelectionPageViewModel(LibrusFactory.CreateLibrusManager());
 }
Ejemplo n.º 5
0
 public AddNewSubjectPage()
 {
     InitializeComponent();
     manager = LibrusFactory.CreateLibrusManager();
 }