private void numbers()
 {
     Editors.IfPropertyIs <Int32>().Modify(x => { if (x.TagName() == new TextboxTag().TagName())
                                                  {
                                                      x.Attr("max", Int32.MaxValue);
                                                  }
                                           });
     Editors.IfPropertyIs <Int16>().Modify(x => { if (x.TagName() == new TextboxTag().TagName())
                                                  {
                                                      x.Attr("max", Int16.MaxValue);
                                                  }
                                           });
     Editors.IfPropertyIs <Int64>().Modify(x => { if (x.TagName() == new TextboxTag().TagName())
                                                  {
                                                      x.Attr("max", Int64.MaxValue);
                                                  }
                                           });
     Editors.IfPropertyTypeIs(IsIntegerBased).Modify(x => { if (x.TagName() == new TextboxTag().TagName())
                                                            {
                                                                x.AddClass("integer");
                                                            }
                                                     });
     Editors.IfPropertyTypeIs(IsFloatingPoint).Modify(x => { if (x.TagName() == new TextboxTag().TagName())
                                                             {
                                                                 x.AddClass("number");
                                                             }
                                                      });
     Editors.IfPropertyTypeIs(IsIntegerBased).Modify(x => { if (x.TagName() == new TextboxTag().TagName())
                                                            {
                                                                x.Attr("mask", "wholeNumber");
                                                            }
                                                     });
 }
 private void numbers()
 {
     Editors.IfPropertyIs <Int32>().Attr("max", Int32.MaxValue);
     Editors.IfPropertyIs <Int16>().Attr("max", Int16.MaxValue);
     //Editoin.IfPropertyIs<Int64>().Attr("max", Int64.MaxValue);
     Editors.IfPropertyTypeIs(IsIntegerBased).AddClass("integer");
     Editors.IfPropertyTypeIs(IsFloatingPoint).AddClass("number");
     Editors.IfPropertyTypeIs(IsIntegerBased).Attr("mask", "wholeNumber");
 }