private void NewReporteExecuted(object sender, EventArgs e) { Debug.Assert(reporte == null); _Commands.ReporteCommands.New.Enabled = false; // Disable new client command to prevent re-entrancy reporte = new VReportes(); reporte.Commands = _Commands; this.ShowModalPanel(reporte, DevComponents.DotNetBar.Controls.eSlideSide.Right); if (!_StartControl.Visible) { _StartControl.SlideOutButtonVisible = false; } }
private void CloseReporteDialog() { if (!_StartControl.Visible) { _StartControl.SlideOutButtonVisible = true; } _Commands.ReporteCommands.New.Enabled = true; // Enable new client command this.CloseModalPanel(reporte, DevComponents.DotNetBar.Controls.eSlideSide.Right); reporte.Commands = null; reporte.Dispose(); reporte = null; }