示例#1
0
 private void modifyBtn_Click(object sender, EventArgs e)
 {
     if (utilizatoriGrid.SelectedCells.Count == 0) return;
     var utilizator = (Utilizator)utilizatoriGrid.Rows[utilizatoriGrid.SelectedCells[0].RowIndex].Tag;
     var form = new AddEditUtilizatorForm();
     form.UtilizatorObject = utilizator;
     form.ShowDialog();
     RefreshUtilizatorList();
 }
示例#2
0
        private void modifyBtn_Click(object sender, EventArgs e)
        {
            if (utilizatoriGrid.SelectedCells.Count == 0)
            {
                return;
            }
            var utilizator = (Utilizator)utilizatoriGrid.Rows[utilizatoriGrid.SelectedCells[0].RowIndex].Tag;
            var form       = new AddEditUtilizatorForm();

            form.UtilizatorObject = utilizator;
            form.ShowDialog();
            RefreshUtilizatorList();
        }