Exemplo n.º 1
0
        private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
        {
            bindingSource1.AddNew();
            var singleForm = new EmpSingleForm(this.bindingSource1, 1);

            singleForm.Show();
        }
Exemplo n.º 2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            // Open sinle form
            var singleForm = new EmpSingleForm(this.bindingSource1, 2);

            singleForm.Show();
        }