public QueueShowControl()
        {
            InitializeComponent();

            _queueItems = new List <QueueItem>();

            _queueShowDesign = new QueueShowModuleDesign();

            _queueShowDesign.BackColor = this.BackColor;
            _queueShowDesign.ForeColor = this.ForeColor;

            _queueShowDesign.FontName = this.Font.Name;
            _queueShowDesign.FontSize = this.Font.Size;
            _queueShowDesign.IsBold   = false;
            _queueShowDesign.IsItalic = false;

            _queueShowDesign.HeadFontName = this.Font.Name;
            _queueShowDesign.HeadFontSize = this.Font.Size;
            _queueShowDesign.HeadBold     = false;
            _queueShowDesign.HeadItalic   = false;

            _queueShowDesign.WaitCount = 5;

            _queueShowDesign.Column1Width = 200;
            _queueShowDesign.Column2Width = 200;
            _queueShowDesign.Column3Width = 200;

            _queueShowDesign.IsShowMemo      = true;
            _queueShowDesign.IsShowLastCall  = false;
            _queueShowDesign.IsShowCallIcon  = true;
            _queueShowDesign.IsShowQueueIcon = false;
        }
        //public override void ModuleLoaded()
        //{
        //    base.ModuleLoaded();

        //    //_queueShowConfig = QueueShowConfig.GetConfig(_userData.Account, _moduleName);


        //}

        protected override void ReloadCustomDesign(string customContext)
        {
            if (string.IsNullOrEmpty(customContext))
            {
                return;
            }

            _queueShowDesign = JsonHelper.DeserializeObject <QueueShowModuleDesign>(customContext);

            LoadDesign();
        }
        public bool ShowQueueShowDesign(QueueModel queueModel, string departmentId, QueueShowModuleDesign queueShowDesign, IWin32Window owner)
        {
            _isOk         = false;
            _departmentId = departmentId;
            _qm           = queueModel;

            _queueShowDesign = queueShowDesign;

            this.ShowDialog(owner);

            return(_isOk);
        }