コード例 #1
0
 private void btnAddCar_Click(object sender, EventArgs e)
 {
     try
     {
         frmBankEdit frmCar = new frmBankEdit(0);
         LBShowForm.ShowDialog(frmCar);
     }
     catch (Exception ex)
     {
         LB.WinFunction.LBCommonHelper.DealWithErrorMessage(ex);
     }
 }
コード例 #2
0
        private void GrdMain_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
                {
                    DataRowView drvSelect      = this.grdMain.Rows[e.RowIndex].DataBoundItem as DataRowView;
                    long        lReceiveBankID = drvSelect["ReceiveBankID"] == DBNull.Value ?
                                                 0 : Convert.ToInt64(drvSelect["ReceiveBankID"]);
                    if (lReceiveBankID > 0)
                    {
                        frmBankEdit frmBank = new frmBankEdit(lReceiveBankID);
                        LBShowForm.ShowDialog(frmBank);

                        LoadDataSource();
                    }
                }
            }
            catch (Exception ex)
            {
                LB.WinFunction.LBCommonHelper.DealWithErrorMessage(ex);
            }
        }