Exemplo n.º 1
0
 private void OnClickHistory(object sender, EventArgs e)
 {
     try
     {
         KeyHistoryForm history = new KeyHistoryForm(this, null);
         history.ShowDialog();
     }
     catch (Exception ex)
     {
         log.ErrorFormat("LMMainForm.OnClickHistory - {0}", ex.Message);
     }
 }
Exemplo n.º 2
0
        private void OnClickKeyHistory(object sender, EventArgs e)
        {
            try
            {
                int    iSelRow = dataGridView3.CurrentCell.RowIndex;
                string strID   = dataGridView3.Rows[iSelRow].Cells[0].Value.ToString();
                int    iID     = Convert.ToInt32(strID);

                List <int> list = new List <int>();
                PrepareHistoryListByID(list, iID);       // Ascending
                PrepareHistoryListByID(list, iID, true); // Descending
                KeyHistoryForm history = new KeyHistoryForm(_mainForm, list);
                history.ShowDialog();
            }
            catch (Exception ex)
            {
                log.ErrorFormat("KeysForm.OnClickKeyHistory - {0}", ex.Message);
            }
        }