public RegisterVM(MainVM mainVm) { _mainVm = mainVm; RaisePropertyChanged(nameof(MainVm)); RegistrationModel = new Person(); UsernameIsTaken = false; }
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 } //} }
public LoginVM(MainVM mainVm) { MainVm = mainVm; Model = new Person() { Password = "" }; }
public HomeScreenVM(MainVM mainVm, Person associatedPerson) { MainVm = mainVm; AssociatedPerson = associatedPerson; if (isLoaded == false) { ReadDataFromTextFiles(); } }
public ToDoVM(MainVM mainVm, Person associatedPerson) { MainVm = mainVm; AssociatedPerson = associatedPerson; SavePath = Path.Combine(Directory.GetCurrentDirectory(), "Data", AssociatedPerson.Username, AssociatedPerson.Username + ".txt"); Content = "0"; ReadToDoListFromTextFile(); }
public ScheduleVM(MainVM mainVm, Person associatedPerson) { MainVm = mainVm; AssociatedPerson = associatedPerson; DaysSelected = new ObservableCollection <DaysOfTheWeek>(); //ReadStudentSubjectDataFromText(); SetTimeDivisions(); PopulateColorList(); }
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(); }