Exemplo n.º 1
0
        private void toolStripMenuItem24_Click(object sender, EventArgs e)
        {
            var editTool             = dataGridViewCollectioner.SelectedRows[0].DataBoundItem as Collectioner;
            AddCollectionerForm adcf = new AddCollectionerForm(editTool);

            if (adcf.ShowDialog() == DialogResult.OK)
            {
                collectionerBindingSource.ResetBindings(false);
                art.isChangeData = true;
            }
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (adc.ShowDialog() == DialogResult.OK)
     {
         art.AddCollectioner(adc.collectioner);
         collectionerBindingSource.ResetBindings(false);
         art.isChangeData = true;
         var lastIdx = dataGridViewCollectioner.Rows.Count - 1;
         dataGridViewCollectioner.Rows[lastIdx].Selected          = true;
         dataGridViewCollectioner.FirstDisplayedScrollingRowIndex = lastIdx;
     }
 }