Пример #1
0
        public bool ShowQueueQuickDesign(QueueModel qm, string departmentId, QueueQuickModuleDesign queueQuickDesign, IWin32Window owner)
        {
            _isOk             = false;
            _departmentId     = departmentId;
            _queueQuickDesign = queueQuickDesign;
            _qm = qm;

            this.ShowDialog(owner);

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

            _queueQuickDesign = JsonHelper.DeserializeObject <QueueQuickModuleDesign>(customContext);

            LoadDesign();

            //BindQueueCall();
        }
        public QueueQuickControl()
        {
            InitializeComponent();

            _queueItems = new List <QueueItem>();

            _queueQuickDesign           = new QueueQuickModuleDesign();
            _queueQuickDesign.BackColor = Color.FromArgb(64, 64, 64);
            _queueQuickDesign.ForeColor = Color.Black;
            _queueQuickDesign.CallColor = Color.Green;

            _queueQuickDesign.ModuleFontName   = this.Font.Name;
            _queueQuickDesign.ModuleFontSize   = this.Font.Size;
            _queueQuickDesign.ModuleFontBold   = this.Font.Bold;
            _queueQuickDesign.ModuleFontItalic = this.Font.Italic;

            _queueQuickDesign.WaitFontName   = this.Font.Name;
            _queueQuickDesign.WaitFontSize   = this.Font.Size;
            _queueQuickDesign.WaitFontBold   = this.Font.Bold;
            _queueQuickDesign.WaitFontItalic = this.Font.Italic;
        }