private void Search() { if (iradarform != null) { radarForm = Activator.CreateInstance(iradarform, args) as IRadarForm; ERPFramework.GlobalInfo.StyleManager.Clone(radarForm as RadarForm); radarForm.RadarFormRowSelected += new RadarForm.RadarFormRowSelectedEventHandler(RadarForm_RadarFormRowSelected); radarForm.Seed = Text; if (radarForm.ShowDialog(GlobalInfo.MainForm) == DialogResult.OK) { Focus(); } radarForm.Dispose(); } }
public void UpdateDescription() { if (DescriptionControl == null) { return; } if (iradarform != null) { radarForm = Activator.CreateInstance(iradarform, args) as IRadarForm; } IRadarParameters iParam = radarForm.GetRadarParameters(Text); DescriptionControl.Text = (Text != string.Empty && radarForm.Find(iParam)) ? radarForm.Description : string.Empty; radarForm.Dispose(); }