Ejemplo n.º 1
0
        public MetroLabel addSubscription(CarLand.Domain.Entities.Car car)
        {
            MetroLabel Preco = new MetroLabel();

            Preco.Text     = metroLabel4.Text;
            Preco.Location = metroLabel4.Location;

            return(Preco);
        }
Ejemplo n.º 2
0
        public MetroLabel addCifrao(CarLand.Domain.Entities.Car car)
        {
            MetroLabel Cifrao = new MetroLabel();

            Cifrao.Text       = metroLabel5.Text;
            Cifrao.Location   = metroLabel5.Location;
            Cifrao.FontSize   = metroLabel5.FontSize;
            Cifrao.FontWeight = MetroLabelWeight.Bold;

            return(Cifrao);
        }
Ejemplo n.º 3
0
        public MetroLabel addCifrao(CarLand.Domain.Entities.Car car)
        {
            var        amount = _appAmount.GetAmount(car.Id);
            MetroLabel Cifrao = new MetroLabel();

            Cifrao.Text       = $"R$ {amount.Amount}";
            Cifrao.Location   = metroLabel5.Location;
            Cifrao.Theme      = metroLabel5.Theme;
            Cifrao.FontSize   = metroLabel5.FontSize;
            Cifrao.FontWeight = MetroLabelWeight.Bold;

            return(Cifrao);
        }
Ejemplo n.º 4
0
        public MetroLabel addTitle(CarLand.Domain.Entities.Car car)
        {
            MetroLabel title = new MetroLabel();

            title.Text        = $"{car.Branch} {car.Model} {car.Year}";
            title.Location    = metroLabel3.Location;
            title.Name        = "Title" + car.Id;
            title.TextAlign   = ContentAlignment.MiddleCenter;
            title.MinimumSize = new Size(280, 0);
            title.MinimumSize = new Size(280, 0);
            title.FontSize    = metroLabel3.FontSize;
            title.FontWeight  = MetroLabelWeight.Bold;

            return(title);
        }