Beispiel #1
0
        public void userControlCallInfo_Click(object sender, EventArgs e)
        {
            UserControlCallInfo calledElement = sender as UserControlCallInfo;

            textBoxAddress.Text     = calledElement.GetAddress();
            textBoxAddress.ReadOnly = true;
            addressStatus           = ConstantValue.FINDING_CAR;
            lat = calledElement.GetLatitude();
            lng = calledElement.GetLongitude();
        }
Beispiel #2
0
 private void LoadHistory(string phoneNumber)
 {
     //load những cuộc gọi trước đó của sdt phoneNumber
     foreach (var call in calls)
     {
         if (call.Value.PhoneNumber != null && call.Value.PhoneNumber.CompareTo(phoneNumber) == 0)
         {
             UserControlCallInfo userControlCallInfo = new UserControlCallInfo(call.Value);
             userControlCallInfo.Click += userControlCallInfo_Click;
             flowLayoutPanelHistory.Controls.Add(userControlCallInfo);
         }
     }
 }
 public UserControlCallInfo()
 {
     InitializeComponent();
     self = this;
 }