﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace com.huawei.ebg.esdk.ucsdk.client.control
{
    public partial class DialCall : Button
    {
        public DialCall()
        {
            InitializeComponent();
        }

        # region 自定义字段

        private string _ucAccount;
        [Description("被叫UC帐号")]
        public string UCAccount
        {
            get { return _ucAccount; }
            set { _ucAccount = value; }
        }

        private string _calledNumber;
        [Description("被叫号码")]
        public string CalledNumber
        {
            get { return _calledNumber; }
            set { _calledNumber = value; }
        }

        # endregion

        protected override void OnClick(EventArgs e)
        {
            base.OnClick(e);

            try
            {
                CtrlBusiness.DirectCall(_ucAccount, _calledNumber);
            }
            catch (Exception ex)
            {
                //throw ex;
            }
        }
    }
}
