Пример #1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            var id             = catalogDGV.SelectedRows[0].Cells[0].Value;
            var productCatalog = new ReflectionForm <T>(set.Find(id));

            productCatalog.Show();
        }
Пример #2
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            var form = new ReflectionForm <T>(new T());

            if (form.ShowDialog() != DialogResult.OK)
            {
                return;
            }
        }