Beispiel #1
0
        private void tabPage1_Enter(object sender, EventArgs e)
        {
            if (tabPage1.Controls.Count == 0)
            {
                _tp1Lv = new ucListView();
                _tp1Lv.Size = new System.Drawing.Size(600, 400);

                _tp1Lv.DataGridViewHelperClicked += ListViewClicked_tp1Lv;

                _tp1Lv.DataSource = DAL.GetData2();
                _tp1Lv.DataBind();

                tabPage1.Controls.Add(_tp1Lv);
            }
        }
Beispiel #2
0
        private void tabPage2_Enter(object sender, EventArgs e)
        {
            //Late option
            //tabPage2.Controls.Clear();

            if (_tp2Dv == null)
            {
                _tp2Lv = new ucListView();
                _tp2Lv.Size = new System.Drawing.Size(600, 400);

                _tp2Lv.DataGridViewHelperClicked += ListViewClicked_tp2Lv;
                tabPage2.Controls.Add(_tp2Lv);

                _tp2Lv.DataSource = DAL.GetData();
                _tp2Lv.DataBind();
            }
        }