/// <summary> /// Handles the Click event of the Right control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void Right_Click(object sender, RoutedEventArgs e) { Button tempbtn = sender as Button; if (tempbtn.Content.ToString().Contains("Reject")) { string a = _dataContext.DialedNumbers; if (!string.IsNullOrEmpty(_dataContext.ThridpartyDN)) { if (_dataContext.ThisDN == _dataContext.ThridpartyDN) { logger.Warn("Redirect DN and This DN are same."); } else { SoftPhone softRedirect = new SoftPhone(); softRedirect.Redirect(_dataContext.ThridpartyDN); } } _dataContext.CallTypeStatus = string.Empty; } else if (tempbtn.Content.ToString().Contains("Accept")) { SoftPhone softAnswer = new SoftPhone(); softAnswer.Answer(); } base.stayOpenTimer.Stop(); base.DisplayState = Pointel.TaskbarNotifier.TaskbarNotifier.DisplayStates.Hiding; }
/// <summary> /// Handles the Click event of the Left control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void Left_Click(object sender, RoutedEventArgs e) { SoftPhone softAnswer = new SoftPhone(); softAnswer.Answer(); base.stayOpenTimer.Stop(); base.DisplayState = Pointel.TaskbarNotifier.TaskbarNotifier.DisplayStates.Hiding; }