Example #1
0
 void NewClientExecuted(object sender, EventArgs e)
 {
     Debug.Assert(_ClientControl == null);
     _Commands.ClientCommands.New.Enabled = false; // Disable new client command to prevent re-entrancy
     _ClientControl = new ClientControl();
     _ClientControl.Commands = _Commands;
     this.ShowModalPanel(_ClientControl, DevComponents.DotNetBar.Controls.eSlideSide.Left);
     if (!_StartControl.Visible)
         _StartControl.SlideOutButtonVisible = false;
 }
Example #2
0
        private void CloseClientDialog()
        {
            if (!_StartControl.Visible)
                _StartControl.SlideOutButtonVisible = true;

            _Commands.ClientCommands.New.Enabled = true; // Enable new client command

            this.CloseModalPanel(_ClientControl, DevComponents.DotNetBar.Controls.eSlideSide.Left);
            _ClientControl.Commands = null;
            _ClientControl.Dispose();
            _ClientControl = null;
        }