Ejemplo n.º 1
0
        private void toolStripMenuItem19_Click(object sender, EventArgs e)
        {
            var            editTool = dataGridViewPicture.SelectedRows[0].DataBoundItem as Picture;
            AddPictureForm adpf     = new AddPictureForm(editTool);

            if (adpf.ShowDialog() == DialogResult.OK)
            {
                pictureBindingSource.ResetBindings(false);
                art.isChangeData = true;
            }
        }
Ejemplo n.º 2
0
        private void toolStripMenuItem4_Click(object sender, EventArgs e)
        {
            AddPictureForm adpf = new AddPictureForm();

            if (adpf.ShowDialog() == DialogResult.OK)
            {
                art.AddPicture(adpf.picture);
                pictureBindingSource.ResetBindings(false);
                art.isChangeData = true;
                var lastIdx = dataGridViewPicture.Rows.Count - 1;
                dataGridViewPicture.Rows[lastIdx].Selected          = true;
                dataGridViewPicture.FirstDisplayedScrollingRowIndex = lastIdx;
            }
        }