WikiFunctions.Tools.GetNumberFromUser C# (CSharp) Method

GetNumberFromUser() public static method

Shows the user an input box to select a number
public static GetNumberFromUser ( bool edits, int max ) : int
edits bool Is the thing being counted, user edits?
max int The maximum value the user can choose
return int
        public static int GetNumberFromUser(bool edits, int max)
        {
            using (Controls.LevelNumber num = new Controls.LevelNumber(edits, max))
            {
                if (num.ShowDialog() != DialogResult.OK) return -1;
                return num.Levels;
            }
        }
Tools