예제 #1
0
파일: PivotPage1.xaml.cs 프로젝트: DISD/2UG
        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)
            {
            }
        }