Exemple #1
0
 /// <summary>
 /// Adds an context object to the collection
 /// </summary>
 /// <param name="emp"></param>
 public void Add(CTIOutboundContext cti)
 {
     if (this.List.Contains(cti))
     {
         return;
     }
     this.List.Add(cti);
 }
Exemple #2
0
        public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destType)
        {
            if (destType == typeof(string) && value is CTIOutboundContext)
            {
                // Cast the value to an context type
                CTIOutboundContext cti = (CTIOutboundContext)value;

                return(cti.Context);
            }
            return(base.ConvertTo(context, culture, value, destType));
        }
Exemple #3
0
        public object Clone()
        {
            //First we create an instance of this specific type.

            CTIOutboundContext newObject = new CTIOutboundContext();

            newObject.Context     = this.context;
            newObject.DisplayName = this.displayname;
            newObject.Priority    = this.priority;

            return(newObject);
        }
Exemple #4
0
        private void btnDial_Click(object sender, EventArgs e)
        {
            if (this.txtPhoneNumber.Text.Equals(""))
            {
                MessageBox.Show(this, this.localizator["0016"], "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (this.cboOutboundContextes.SelectedItem == null)
            {
                MessageBox.Show(this, this.localizator["0017"], "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            CTIOutboundContext ctx = (CTIOutboundContext)this.cboOutboundContextes.SelectedItem;

            if (ctx != null)
            {
                string cmd = string.Format("ORIG {0}|{1}|{2}",
                                           this.txtPhoneNumber.Text,
                                           ctx.Context,
                                           ctx.Priority);
                EnableCallActions(false);
                this.socketmanager.SendData(cmd);
            }
        }
 /// <summary>
 /// Removes an context object from the collection
 /// </summary>
 /// <param name="emp"></param>
 public void Remove(CTIOutboundContext cti)
 {
     this.List.Remove(cti);
 }
 /// <summary>
 /// Adds an context object to the collection
 /// </summary>
 /// <param name="emp"></param>
 public void Add(CTIOutboundContext cti)
 {
     if (this.List.Contains(cti))
     {
         return;
     }
     this.List.Add(cti);
 }
        public object Clone()
        {
            //First we create an instance of this specific type.

            CTIOutboundContext newObject = new CTIOutboundContext();
            newObject.Context = this.context;
            newObject.DisplayName = this.displayname;
            newObject.Priority = this.priority;

            return newObject;
        }
Exemple #8
0
 /// <summary>
 /// Removes an context object from the collection
 /// </summary>
 /// <param name="emp"></param>
 public void Remove(CTIOutboundContext cti)
 {
     this.List.Remove(cti);
 }