private void Search() { if (rdrRadarForm != null) { rdrRadarForm.Seed = Text; if (rdrRadarForm.ShowDialog() == DialogResult.OK) { Focus(); } } }
protected virtual void OnSearchButton() { var rdr = Activator.CreateInstance(dbManager.RadarDocument, dbManager.RadarParams); Debug.Assert(rdr is IRadarForm); RadarForm myRadar = rdr as RadarForm; myRadar.FindQuery = string.Empty; ERPFramework.GlobalInfo.StyleManager.Clone(myRadar); if (dbManager.Status == DBMode.Find) { myRadar.FindQuery = PrepareFindQuery(); } myRadar.RadarFormRowSelected += new RadarForm.RadarFormRowSelectedEventHandler(myRadar_RadarFormRowSelected); myRadar.ShowDialog(GlobalInfo.MainForm); myRadar.RadarFormRowSelected -= new RadarForm.RadarFormRowSelectedEventHandler(myRadar_RadarFormRowSelected); }