public void Populate(Fwk.Logging.Targets.Target target) { _Target = target; //grdLogs.BindingContextChanged += new EventHandler(grdLogs_BindingContextChanged); Event ev = new Event(); try { Events wEvents = _Target.SearchByParam(ev); currentEvents = Get_EventGridList(wEvents); this.eventGridListBindingSource.DataSource = null; this.eventGridListBindingSource.DataSource = currentEvents; grdLogs.Refresh(); } catch (InvalidOperationException io) { MessageBox.Show("El archivo no tiene el formato correcto"); throw io; } }
void Load_FRM_Document(Fwk.Logging.Targets.Target t) { FRM_Document wForm; try { wForm = new FRM_Document(); wForm.Populate(t); wForm.MdiParent = this; wForm.Show(); } catch (InvalidOperationException) { } catch (Exception ex) { this.ExceptionViewer.Show(ex); } }