Exemplo n.º 1
0
        public void ReLoadList()
        {
            Code.Services.LeadService service = new Code.Services.LeadService();
            var list = service.GetAllLeadList();

            dataListView1.DataSource = list;
        }
Exemplo n.º 2
0
        public fmQuickQuery()
        {
            InitializeComponent();

            //listView1.Columns.Add("单位", 240, HorizontalAlignment.Left);
            //listView1.Columns.Add("姓名", 120, HorizontalAlignment.Left);
            //listView1.Columns.Add("职务", 100, HorizontalAlignment.Left);
            //listView1.Columns.Add("办公红机", 80, HorizontalAlignment.Right);
            //listView1.Columns.Add("住宿红机", 80, HorizontalAlignment.Right);
            //listView1.Columns.Add("秘书红机", 80, HorizontalAlignment.Right);
            ShowInTaskbar   = false;
            MaximizeBox     = false;
            MinimizeBox     = false;
            this.ControlBox = false;
            FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            CreateColumns();

            Code.Services.LeadService service = new Code.Services.LeadService();
            var list = service.GetAllLeadList();

            dataListView1.ShowGroups          = false;
            dataListView1.RowHeight           = 50;
            dataListView1.FullRowSelect       = true;
            dataListView1.AutoGenerateColumns = false;
            dataListView1.DataSource          = list;
        }