namespace RemapperGUI.Utils; internal static class GUI { /// /// Returns the value of the count or null if disabled /// /// /// public static int? GetCount(this CheckBox box, NumericUpDown upDown) { if (box.Checked) { return (int?)upDown.Value; } return null; } public static bool? GetEnabled(this DomainUpDown domainUpDown) { if (domainUpDown.Text == "True") { return true; } else if (domainUpDown.Text == "False") { return false; } return null; } }