示例#1
0
        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);
        }
示例#2
0
文件: Hotel.xaml.cs 项目: DISD/2UG
        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)
            {
            }
        }