/// <summary> /// Loads the default values for controls with corresponding App Variables. /// </summary> private void LoadDefaults() { entryPrimaryCollectorProject.Text = (AppVariables.CollectorName is null) ? "" : AppVariables.CollectorName; entryProjectName.Text = "Project-" + (DataFunctions.GetAllProjectsCount() + 1).ToString(); dpCreatedDate.Date = DateTime.Today; btnBack.IsVisible = userIsEditing; }