Sudoku.Chooselv.selectedlv C# (CSharp) Method

selectedlv() public method

public selectedlv ( String txtlv, int dimension ) : int
txtlv String
dimension int
return int
        public int selectedlv(String txtlv, int dimension)
        {
            if (txtlv.Equals("Easy"))
                {
                    return 50;

                }
                else if (txtlv.Equals("Normal"))
                {
                    return 40;

                }
                else if (txtlv.Equals("Hard"))
                {
                    return 30;

                }
                else
                {
                    return 0;
                }
        }
Chooselv