Пример #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            var frm = new frmEditMock();

            frm.ShowDialog();
            GetMockData();
        }
Пример #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (gridMocks.SelectedRows.Count > 0)
     {
         int id;
         int.TryParse(gridMocks.SelectedRows[0].Cells[0].Value.ToString(), out id);
         var frm = new frmEditMock(id);
         frm.ShowDialog();
         GetMockData();
     }
 }