Beispiel #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            if (dgvPresets.Rows.Count == 0)
            {
                return;
            }
            UpdatePreset up = new UpdatePreset(Convert.ToString(dgvPresets.SelectedRows[0].Cells[0].Value));

            if (up.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            Fill_dgvPresets();
        }
Beispiel #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                if (dgvPresets.Rows.Count == 0)
                {
                    return;
                }
                UpdatePreset up = new UpdatePreset(dgvPresets.SelectedRows[0]);
                if (up.ShowDialog() == DialogResult.Cancel)
                {
                    return;
                }

                Fill_dgvPresets();
            }
            catch
            {
            }
        }