Ejemplo n.º 1
0
        private void dataGridView_main_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                textBox_queryOutput.Text = "Row not selectable";
                return;
            }

            DataGridViewRow selectedRow = dataGridView_main.Rows[e.RowIndex];
            int huntId = Convert.ToInt32(selectedRow.Cells[Constants.friendly_column_huntId].Value.ToString());

            log.Debug("Attempting to load HuntEditor for " + huntId);

            HuntEditor huntEditorForm = new HuntEditor(huntId);
            huntEditorForm.ShowDialog();

            if(lastQuery != null)
            {
                RunOrRerunQuery(true);
            }
        }
Ejemplo n.º 2
0
 private void button_add_Click(object sender, EventArgs e)
 {
     HuntEditor editorForm = new HuntEditor();
     editorForm.ShowDialog();
     if (lastQuery != null)
     {
         RunOrRerunQuery(true);
     }
 }