private void callEventHandler(object sender, RoutedEventArgs e) { string tel = (string)((Button)sender).Tag; disableAppliicationBarIcon(); CallForm callForm = new CallForm(tel); callForm.Show(); callForm.Closed += new EventHandler(OnCallEnded); callForm.VerticalAlignment = VerticalAlignment.Top; callForm.HorizontalAlignment = HorizontalAlignment.Center; callForm.Margin = new Thickness(0, 30, 0, 0); }
private void callEventHandler(object sender, RoutedEventArgs e) { string tel = (string)((Button)sender).Tag; try { if (tel.Any() == true) { disableApplicationIconBar(); CallForm callForm = new CallForm(tel); callForm.Show(); callForm.Closed += new EventHandler(OnCallEnded); callForm.VerticalAlignment = VerticalAlignment.Top; callForm.HorizontalAlignment = HorizontalAlignment.Center; callForm.Margin = new Thickness(0, 30, 0, 0); } else { return; } } catch (Exception m) { } }