//returns 1 if this check is for last week and should be saved there int ShouldSaveToPreviousWeek() { if (currentWeekIndex > 0) { string lastWeekCheck = vM.GetWeeklyValues()[currentWeekIndex - 1]; if (string.IsNullOrEmpty(lastWeekCheck) && (currentDayIndex % 7 == 0 || currentDayIndex == 29)) { return(1); } } return(0); }
void ShowWeeklyTask(int index) { var correctWeekObject = weekTasks[index]; string[] values = vM.GetWeeklyValues(); //0 is first week, 1 is second etc if (values[weekIndex] == "") { correctWeekObject.color = Colors.incompleteColor; } else if (values[weekIndex] == OptionCodes.options[0]) //if success { correctWeekObject.color = Colors.completeColor; } else if (values[weekIndex] == OptionCodes.options[1]) { correctWeekObject.color = Colors.toggleGrayColor; } }