Пример #1
0
        private void btnEdit_Click(object sender, System.EventArgs e)
        {
            var row  = dataGridView1.SelectedRows[0].DataBoundItem as Model.Models.Type;
            var form = new EditType(repository, row);

            form.ShowDialog();
            Reload();
        }
Пример #2
0
        private void btnEdit_Click(object sender, System.EventArgs e)
        {
            var row  = dataGridView1.SelectedRows[0].DataBoundItem as ServiceReference1.Type;
            var form = new EditType(service, row);

            form.ShowDialog();
            Reload();
        }