Ejemplo n.º 1
0
 public RegisterVM(MainVM mainVm)
 {
     _mainVm = mainVm;
     RaisePropertyChanged(nameof(MainVm));
     RegistrationModel = new Person();
     UsernameIsTaken   = false;
 }
Ejemplo n.º 2
0
        public GradesVM(MainVM mainVm, Person associatedPerson)
        {
            TestModel        = new Test();
            MainVm           = mainVm;
            AssociatedPerson = associatedPerson; // read from txt later

            LineSeriesCollection = new ObservableCollection <LineSeries>();
            LineSeries           = new LineSeries();
            SeriesCollection     = new SeriesCollection();
            GraphWidth           = 700;
            SetGraph();

            //new LineSeries
            //    {
            //         Values = new ChartValues<double> { 3, 5, 7, 4 }

            //    },
            //new LineSeries()
            //{

            //}
            //new LineSeries
            //{
            //    Values = new ChartValues<decimal> { 5, 6, 2, 7 }
            //}
        }
Ejemplo n.º 3
0
 public LoginVM(MainVM mainVm)
 {
     MainVm = mainVm;
     Model  = new Person()
     {
         Password = ""
     };
 }
Ejemplo n.º 4
0
 public HomeScreenVM(MainVM mainVm, Person associatedPerson)
 {
     MainVm           = mainVm;
     AssociatedPerson = associatedPerson;
     if (isLoaded == false)
     {
         ReadDataFromTextFiles();
     }
 }
Ejemplo n.º 5
0
 public ToDoVM(MainVM mainVm, Person associatedPerson)
 {
     MainVm           = mainVm;
     AssociatedPerson = associatedPerson;
     SavePath         = Path.Combine(Directory.GetCurrentDirectory(), "Data", AssociatedPerson.Username,
                                     AssociatedPerson.Username + ".txt");
     Content = "0";
     ReadToDoListFromTextFile();
 }
Ejemplo n.º 6
0
 public ScheduleVM(MainVM mainVm, Person associatedPerson)
 {
     MainVm           = mainVm;
     AssociatedPerson = associatedPerson;
     DaysSelected     = new ObservableCollection <DaysOfTheWeek>();
     //ReadStudentSubjectDataFromText();
     SetTimeDivisions();
     PopulateColorList();
 }
Ejemplo n.º 7
0
        public TimerVM(MainVM mainVm, Person associatedPerson)
        {
            MainVm              = mainVm;
            AssociatedPerson    = associatedPerson;
            NumberOfTimerCycles = 0;
            //Timer = new StudyTimer(1500, associatedPerson, 300, 900);
            Timer = new StudyTimer(10, associatedPerson, 3, 5);

            randomQuoteGenerator = new RandomQuoteGenerator();
        }