Beispiel #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;
            }
        }
Beispiel #2
0
        private void toolStripMenuItem4_Click(object sender, EventArgs e)
        {
            AddCollectionerForm adcf = new AddCollectionerForm();

            if (adcf.ShowDialog() == DialogResult.OK)
            {
                art.AddCollectioner(adcf.collectioner);
                collectionerBindingSource.ResetBindings(false);
                art.isChangeData = true;
                var lastIdx = dataGridViewCollectioner.Rows.Count - 1;
                dataGridViewCollectioner.Rows[lastIdx].Selected          = true;
                dataGridViewCollectioner.FirstDisplayedScrollingRowIndex = lastIdx;
            }
        }