private void btnQueryDataBase_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var configform = new MPPO.UI.ConfigForm.DebugDataSelectForm(); if (configform.ShowDialog() == DialogResult.Yes) { try { MdiForm.MdiDataViewForm targetform = new MdiForm.MdiDataViewForm(); targetform.MdiParent = this; targetform.MdiIndex = this.DataFormIndex++; targetform.Show(); MPPO.Kernel.BusinessLogicOperation.DataAccessOperation.GetSingleTableFromDataBase(targetform, configform.command, configform.conStr, configform.tablename); } catch (Exception ex) { MessageBox.Show(ex.Message); return; } } }
private void btnQueryDataBase_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var configform = new MPPO.UI.ConfigForm.DebugDataSelectForm(); if (configform.ShowDialog() == DialogResult.Yes) { try { MdiForm.MdiDataViewForm targetform = new MdiForm.MdiDataViewForm(); targetform.MdiParent = this; targetform.MdiIndex = this.DataFormIndex++; targetform.Show(); MPPO.Kernel.BusinessLogicOperation.DataAccessOperation.GetSingleTableFromDataBase(targetform, configform.command, configform.conStr, configform.tablename); } catch (Exception ex) { MessageBox.Show(ex.Message); return; } } }