예제 #1
0
        private void InitialCarType()
        {
            var carType = _comboService.GetComboCarType();

            foreach (var item in carType)
            {
                Button btn = new Button();
                //btn.Dock = DockStyle.Top;
                btn.Height    = 100;
                btn.Width     = 150;
                btn.Font      = new Font(btn.Font.FontFamily, 20);
                btn.BackColor = Color.FromArgb(232, 249, 102);

                btn.Text = item.Text;
                btn.Tag  = item.Value;

                btn.Click += new EventHandler(CarTypeSelected_EventHadler);

                flowCarType.Controls.Add(btn);
            }
        }
예제 #2
0
 private void InitialComboBox()
 {
     AddRangeComboBox(comboCarType, _comboService.GetComboCarType());
 }