コード例 #1
0
 public RegisterVM(MainVM mainVm)
 {
     _mainVm = mainVm;
     RaisePropertyChanged(nameof(MainVm));
     RegistrationModel = new Person();
     UsernameIsTaken   = false;
 }
コード例 #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 }
            //}
        }
コード例 #3
0
 public LoginVM(MainVM mainVm)
 {
     MainVm = mainVm;
     Model  = new Person()
     {
         Password = ""
     };
 }
コード例 #4
0
 public HomeScreenVM(MainVM mainVm, Person associatedPerson)
 {
     MainVm           = mainVm;
     AssociatedPerson = associatedPerson;
     if (isLoaded == false)
     {
         ReadDataFromTextFiles();
     }
 }
コード例 #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();
 }
コード例 #6
0
 public ScheduleVM(MainVM mainVm, Person associatedPerson)
 {
     MainVm           = mainVm;
     AssociatedPerson = associatedPerson;
     DaysSelected     = new ObservableCollection <DaysOfTheWeek>();
     //ReadStudentSubjectDataFromText();
     SetTimeDivisions();
     PopulateColorList();
 }
コード例 #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();
        }