Exemple #1
0
 public HomeController(ILogger <HomeController> logger,
                       SqlCart sqlCart,
                       UserManager <AppUser> userManager,
                       SqlNews sqlNews,
                       SqlDiscount sqlDiscount
                       )
 {
     _logger      = logger;
     _userManager = userManager;
     _sqlNews     = sqlNews;
     _sqlDiscount = sqlDiscount;
     _sqlCart     = sqlCart;
 }
Exemple #2
0
 public NewsController
 (
     SqlProduct sqlProdut,
     SqlCart sqlCart,
     SqlNews sqlNews,
     UserManager <AppUser> userManager,
     IWebHostEnvironment webHostEnvironment
 )
 {
     _sqlProduct         = sqlProdut;
     _sqlCart            = sqlCart;
     _sqlNews            = sqlNews;
     _userManager        = userManager;
     _webHostEnvironment = webHostEnvironment;
 }
 public static nfloat HeightFor(SqlNews item) => item.Date.ToString(CultureInfo.CurrentCulture).StringHeight(UIFont.SystemFontOfSize(11), 280)
 + item.Title.StringHeight(UIFont.SystemFontOfSize(18), 280) + 24;
Exemple #4
0
 public void MarkAsDirty(SqlNews news)
 {
     this.MessageText.Text = news.Message;
     this.SetNeedsDisplay();
     this.ReloadInputViews();
 }