コード例 #1
0
        }//--------------------

        //##################################END TEXTBOX txtSearch EVENTS##########################################################

        //##################################DATAGRIDVIEW dgvList EVENTS##########################################################
        //event is raised when the key is up
        //event is raised when the mouse is double clicked
        protected override void dgvListDoubleClick(object sender, EventArgs e)
        {
            base.dgvListDoubleClick(sender, e);

            if (!String.IsNullOrEmpty(this.PrimaryId))
            {
                if (!_isForUpdateChartOfAccount)
                {
                    this.Close();
                }
                else
                {
                    using (ChartOfAccountUpdate frmUpdate = new ChartOfAccountUpdate(_userInfo, _chartOfAccountManager.GetDetailsChartOfAccount(_userInfo, this.PrimaryId),
                                                                                     _chartOfAccountManager))
                    {
                        frmUpdate.ShowDialog(this);

                        if (frmUpdate.HasUpdated)
                        {
                            _hasUpdate = true;

                            this.SetDataGridViewSource(_chartOfAccountManager.GetSearchedChartOfAccountInformations(this.txtSearch.Text));
                        }
                    }
                }
            }
        }