private void NewListaVentaExecuted(object sender, EventArgs e) { Debug.Assert(lista == null); _Commands.ListaVentaCommands.New.Enabled = false; // Disable new client command to prevent re-entrancy lista = new VListaVentas(Datos); lista.Commands = _Commands; this.ShowModalPanel(lista, DevComponents.DotNetBar.Controls.eSlideSide.Bottom); if (!_StartControl.Visible) { _StartControl.SlideOutButtonVisible = false; } }
private void CloseListaDialog() { if (!_StartControl.Visible) { _StartControl.SlideOutButtonVisible = true; } _Commands.ListaVentaCommands.New.Enabled = true; // Enable new client command this.CloseModalPanel(lista, DevComponents.DotNetBar.Controls.eSlideSide.Bottom); lista.Commands = null; lista.Dispose(); lista = null; }