Пример #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FrmAddUrl form = new FrmAddUrl();
            form.ShowDialog();
            foreach (String item in form.Urls)
            {
                UrlRecord record = new UrlRecord { Url = item, Status = 0 };
                m_records.Add(record);
            }

            BindingSource bs = new BindingSource();
            bs.DataSource = m_records;
            this.dgv.DataSource = bs;
        }
Пример #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FrmAddUrl form = new FrmAddUrl();

            form.ShowDialog();
            foreach (String item in form.Urls)
            {
                UrlRecord record = new UrlRecord {
                    Url = item, Status = 0
                };
                m_records.Add(record);
            }

            BindingSource bs = new BindingSource();

            bs.DataSource       = m_records;
            this.dgv.DataSource = bs;
        }