Пример #1
0
        public ActionResult DashBoard()
        {
            DashboardGroup  details   = new DashboardGroup();
            DashboardTotals tempTotal = new DashboardTotals();
            MembersBLL      memBLL    = new MembersBLL();
            EventsBLL       eveBLL    = new EventsBLL();
            ItemsBLL        iteBLL    = new ItemsBLL();

            List <DashboardEvents>  eves  = new List <DashboardEvents>();
            List <DashboardVendors> vends = new List <DashboardVendors>();

            tempTotal.TotalMembers = memBLL.MembersCount();
            tempTotal.TotalEvents  = eveBLL.EventsCount();
            tempTotal.TotalItems   = iteBLL.ItemsCount();
            tempTotal.TotalVendors = "0000";

            vends.Add(new DashboardVendors("1", "Shop1", "Vendor1", DateTime.Now));
            vends.Add(new DashboardVendors("2", "Shop2", "Vendor2", DateTime.Now));
            vends.Add(new DashboardVendors("3", "Shop3", "Vendor3", DateTime.Now));
            vends.Add(new DashboardVendors("4", "Shop4", "Vendor4", DateTime.Now));
            vends.Add(new DashboardVendors("5", "Shop1", "Vendor5", DateTime.Now));

            details.Totals  = tempTotal;
            details.Members = memBLL.Recent5Members();
            details.Events  = eveBLL.Recent5Events();
            details.Items   = iteBLL.Recent5Items();
            details.Vendors = vends.ToArray();
            return(View(details));
        }
Пример #2
0
 public ThingThatGetsAButton(DashboardGroup group,
                             string localizedLabel,
                             string localizedLongLabel,
                             string description)
     : this(
         group,
         localizedLabel,
         localizedLongLabel,
         description,
         ButtonStyle.VariableAmount,
         null)
 {
 }
Пример #3
0
 public ThingThatGetsAButton(DashboardGroup group,
                             string localizedLabel,
                             string localizedLongLabel,
                             string description,
                             ButtonStyle style,
                             Image image)
 {
     _image = image;
     DashboardButtonStyle = style;
     _group              = group;
     _localizedLabel     = localizedLabel;
     _localizedLongLabel = localizedLongLabel;
     _description        = description;
     Font = new Font("Arial", 10);
 }
Пример #4
0
		public ThingThatGetsAButton(DashboardGroup group,
									string localizedLabel,
									string localizedLongLabel,
									string description)
				: this(
						group,
						localizedLabel,
						localizedLongLabel,
						description,
						ButtonStyle.VariableAmount,
						null) {}
Пример #5
0
		public ThingThatGetsAButton(DashboardGroup group,
									string localizedLabel,
									string localizedLongLabel,
									string description,
									ButtonStyle style,
									Image image)
		{
			_image = image;
			DashboardButtonStyle = style;
			_group = group;
			_localizedLabel = localizedLabel;
			_localizedLongLabel = localizedLongLabel;
			_description = description;
			Font = new Font("Arial", 10);
		}
Пример #6
0
 public DashboardGroupViewModel(Dashboard dashboard, DashboardGroup group)
 {
     _dashboard = dashboard;
     _group     = group;
     _elementStates.CollectionChanged += CollectionChanged;
 }
Пример #7
0
		public ButtonGroup(DashboardGroup group, Color borderColor, Color doneColor)
		{
			_group = group;
			_borderColor = borderColor;
			_doneColor = doneColor;
		}
Пример #8
0
 public ButtonGroup(DashboardGroup group, Color borderColor, Color doneColor)
 {
     _group       = group;
     _borderColor = borderColor;
     _doneColor   = doneColor;
 }