示例#1
0
        public Dictionary <Cell, IResult> GenerateSolution(string userName)
        {
            ResultHelper helper = new ResultHelper();

            helper.AddInteger(0, 0, 1);
            helper.AddDouble(0, 1, 1.5, 0);
            helper.AddFraction(0, 2, 1.5, 0);
            helper.AddTrueFalse(0, 3, true);
            helper.AddSimpleText(0, 4, "test");

            helper.AddInteger(2, 1, 1);
            helper.AddDouble(2, 2, 1.5, 0);
            helper.AddFraction(2, 3, 1.5, 0);
            helper.AddTrueFalse(2, 4, false);

            helper.AddDouble(3, 1, 1.5, 0);
            helper.AddFraction(3, 2, 1.5, 0);
            helper.AddTrueFalse(3, 3, true);
            helper.AddSimpleText(3, 4, "test");

            helper.AddFraction(4, 1, 1.5, 0);
            helper.AddTrueFalse(4, 2, true);
            helper.AddDouble(4, 3, 1.5, 0);
            helper.AddSimpleText(4, 4, "test");
            return(helper.Results);
        }