Esempio n. 1
0
        private void dgvRows_SelectionChanged(object sender, EventArgs e)
        {
            ModuleProc PROC = new ModuleProc("", "dgvRows_SelectionChanged");

            lock (_lockGrid)
            {
                try
                {
                    if (dgvRows.SelectedRows.Count > 0)
                    {
                        DataGridViewRow row = dgvRows.SelectedRows[0];
                        GridViewRowSelectedEventArgs args = new GridViewRowSelectedEventArgs()
                        {
                            Row        = row,
                            DataObject = row.DataBoundItem
                        };
                        this.RowSelected(args);
                    }
                }
                catch (Exception ex)
                {
                    Log.Exception(PROC, ex);
                }
            }
        }
Esempio n. 2
0
        private void OnRowSelected(GridViewRowSelectedEventArgs e)
        {
            ModuleProc PROC = new ModuleProc("", "OnRowSelected");

            try
            {
                if (this.RowSelected != null)
                {
                    this.RowSelected(e);
                }
            }
            catch (Exception ex)
            {
                Log.Exception(PROC, ex);
            }
        }
        private void OnRowSelected(GridViewRowSelectedEventArgs e)
        {
            ModuleProc PROC = new ModuleProc("", "OnRowSelected");

            try
            {
                if (this.RowSelected != null)
                {
                    this.RowSelected(e);
                }
            }
            catch (Exception ex)
            {
                Log.Exception(PROC, ex);
            }
        }
        private void dgvRows_SelectionChanged(object sender, EventArgs e)
        {
            ModuleProc PROC = new ModuleProc("", "dgvRows_SelectionChanged");

            lock (_lockGrid)
            {
                try
                {
                    if (dgvRows.SelectedRows.Count > 0)
                    {
                        DataGridViewRow row = dgvRows.SelectedRows[0];
                        GridViewRowSelectedEventArgs args = new GridViewRowSelectedEventArgs()
                        {
                            Row = row,
                            DataObject = row.DataBoundItem
                        };
                        this.RowSelected(args);
                    }
                }
                catch (Exception ex)
                {
                    Log.Exception(PROC, ex);
                }
            }
        }