Ejemplo n.º 1
0
        public int Add(AfniLink item)
        {
            if (Contains(item))
            {
                return(-1);
            }
            int index = InnerList.Add(item);

            RaiseChanged();
            return(index);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lnkQueue      = new Afni.Controls.AfniLink();
     this.lnkDialer     = new Afni.Controls.AfniLink();
     this.lnkOrderQueue = new Afni.Controls.AfniLink();
     this.lnkCustSearch = new Afni.Controls.AfniLink();
     this.lblHdr        = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // lnkQueue
     //
     this.lnkQueue.ActiveLinkColor = System.Drawing.Color.White;
     this.lnkQueue.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.lnkQueue.Icon            = null;
     this.lnkQueue.IconSize        = 16;
     this.lnkQueue.LinkColor       = System.Drawing.Color.White;
     this.lnkQueue.Location        = new System.Drawing.Point(24, 104);
     this.lnkQueue.Name            = "lnkQueue";
     this.lnkQueue.Size            = new System.Drawing.Size(424, 16);
     this.lnkQueue.TabIndex        = 38;
     this.lnkQueue.Text            = "I want to build a call queue and have VLoop select my customers.";
     this.lnkQueue.Click          += new System.EventHandler(this.lnkQueue_Click);
     //
     // lnkDialer
     //
     this.lnkDialer.ActiveLinkColor = System.Drawing.Color.White;
     this.lnkDialer.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.lnkDialer.Icon            = null;
     this.lnkDialer.IconSize        = 16;
     this.lnkDialer.LinkColor       = System.Drawing.Color.White;
     this.lnkDialer.Location        = new System.Drawing.Point(24, 128);
     this.lnkDialer.Name            = "lnkDialer";
     this.lnkDialer.Size            = new System.Drawing.Size(336, 16);
     this.lnkDialer.TabIndex        = 37;
     this.lnkDialer.Text            = "I want to use the dialer.";
     this.lnkDialer.Click          += new System.EventHandler(this.lnkDialer_Click);
     //
     // lnkOrderQueue
     //
     this.lnkOrderQueue.ActiveLinkColor = System.Drawing.Color.White;
     this.lnkOrderQueue.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.lnkOrderQueue.Icon            = null;
     this.lnkOrderQueue.IconSize        = 16;
     this.lnkOrderQueue.LinkColor       = System.Drawing.Color.White;
     this.lnkOrderQueue.Location        = new System.Drawing.Point(24, 152);
     this.lnkOrderQueue.Name            = "lnkOrderQueue";
     this.lnkOrderQueue.Size            = new System.Drawing.Size(368, 16);
     this.lnkOrderQueue.TabIndex        = 39;
     this.lnkOrderQueue.Text            = "I want to work orders that are in a specific order queue.";
     this.lnkOrderQueue.Click          += new System.EventHandler(this.lnkOrderQueue_Click);
     //
     // lnkCustSearch
     //
     this.lnkCustSearch.ActiveLinkColor = System.Drawing.Color.White;
     this.lnkCustSearch.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.lnkCustSearch.Icon            = null;
     this.lnkCustSearch.IconSize        = 16;
     this.lnkCustSearch.LinkColor       = System.Drawing.Color.White;
     this.lnkCustSearch.Location        = new System.Drawing.Point(24, 80);
     this.lnkCustSearch.Name            = "lnkCustSearch";
     this.lnkCustSearch.Size            = new System.Drawing.Size(384, 16);
     this.lnkCustSearch.TabIndex        = 36;
     this.lnkCustSearch.Text            = "I want to manually search for customers after each call.";
     this.lnkCustSearch.Click          += new System.EventHandler(this.lnkCustSearch_Click);
     //
     // lblHdr
     //
     this.lblHdr.Font     = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.lblHdr.Location = new System.Drawing.Point(24, 24);
     this.lblHdr.Name     = "lblHdr";
     this.lblHdr.Size     = new System.Drawing.Size(440, 32);
     this.lblHdr.TabIndex = 40;
     this.lblHdr.Text     = "Select your work mode";
     //
     // ctlWorkMode
     //
     this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(99)), ((System.Byte)(117)), ((System.Byte)(214)));
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.lblHdr,
         this.lnkOrderQueue,
         this.lnkQueue,
         this.lnkDialer,
         this.lnkCustSearch
     });
     this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.Name = "ctlWorkMode";
     this.Size = new System.Drawing.Size(672, 560);
     this.ResumeLayout(false);
 }
Ejemplo n.º 3
0
 public void Insert(int index, AfniLink item)
 {
     InnerList.Insert(index, item);
     RaiseChanged();
 }
Ejemplo n.º 4
0
 public void Remove(AfniLink item)
 {
     InnerList.Remove(item);
     RaiseChanged();
 }
Ejemplo n.º 5
0
 public int IndexOf(AfniLink item)
 {
     return(InnerList.IndexOf(item));
 }
Ejemplo n.º 6
0
 public bool Contains(AfniLink item)
 {
     return(InnerList.Contains(item));
 }