private void ULSLogEntriesGridControl_Load(object sender, EventArgs e)
        {
            //LogEntriesGrid.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            //LogEntriesGrid.MultiSelect = false;

            control.MouseDoubleClick += LogEntriesGrid_MouseDoubleClick;

            control.MouseDoubleClick += delegate
            {
                System.Data.DataRow row = ((System.Data.DataRowView)control.SelectedItem).Row;

                List <string> ulsEntry = new List <string>();


                foreach (string value in row.ItemArray)
                {
                    ulsEntry.Add(value);
                }

                EntryDetail detailForm = new EntryDetail(new ULSLogEntry(ulsEntry.ToArray()));
                detailForm.Show();
            };

            control.SelectionChanged += control_SelectionChanged;
        }
Exemplo n.º 2
0
        private void ULSLogEntriesGridControl_Load(object sender, EventArgs e)
        {
            LogEntriesGrid.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            LogEntriesGrid.MultiSelect   = false;

            LogEntriesGrid.CellContentDoubleClick += delegate
            {
                DataGridViewRow row = LogEntriesGrid.Rows[_logHitTestInfo.RowIndex];

                List <string> ulsEntry = new List <string>();

                foreach (DataGridViewCell cell in row.Cells)
                {
                    ulsEntry.Add(cell.Value.ToString());
                }

                EntryDetail detailForm = new EntryDetail(new ULSLogEntry(ulsEntry.ToArray()));
                detailForm.Show();
            };
        }