Esempio n. 1
0
        private void load(VerifyScreen verify)
        {
            hiddenIssueTypes = verify.HiddenIssueTypes.GetBoundCopy();

            foreach (IssueType issueType in configurableIssueTypes)
            {
                var checkbox = new SettingsCheckbox
                {
                    Anchor    = Anchor.CentreLeft,
                    Origin    = Anchor.CentreLeft,
                    LabelText = issueType.ToString(),
                    Current   = { Default = !hiddenIssueTypes.Contains(issueType) }
                };

                checkbox.Current.SetDefault();
                checkbox.Current.BindValueChanged(state =>
                {
                    if (!state.NewValue)
                    {
                        hiddenIssueTypes.Add(issueType);
                    }
                    else
                    {
                        hiddenIssueTypes.Remove(issueType);
                    }
                });

                Flow.Add(checkbox);
            }
        }
Esempio n. 2
0
 private void load(VerifyScreen verify)
 {
     Flow.Add(new SettingsEnumDropdown <DifficultyRating>
     {
         Anchor      = Anchor.CentreLeft,
         Origin      = Anchor.CentreLeft,
         TooltipText = "Affects checks that depend on difficulty level",
         Current     = verify.InterpretedDifficulty.GetBoundCopy()
     });
 }