public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/BantuAnakAsuh;component/Views/UCCustomToolTip.xaml", System.UriKind.Relative));
     this.imgmarker = ((System.Windows.Controls.Image)(this.FindName("imgmarker")));
     this.Menuitem = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("Menuitem")));
 }
예제 #2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/HelpMate;component/XAML/UCCustomToolTip.xaml", System.UriKind.Relative));
     this.imgmarker = ((System.Windows.Controls.Image)(this.FindName("imgmarker")));
     this.Menuitem  = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("Menuitem")));
 }
예제 #3
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EnterraPokerTimer;component/Views/ToursPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.List = ((System.Windows.Controls.ListBox)(this.FindName("List")));
     this.TestContextMenu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("TestContextMenu")));
     this.AddRemove = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("AddRemove")));
 }
예제 #4
0
 private void ContextMenu_Opened(object sender, RoutedEventArgs e)
 {
     menu = sender as ContextMenu;
     if (menu.Items.Count == 0)
     {
         var mi = new Microsoft.Phone.Controls.MenuItem();
         mi.Header = AppResources.Delete;
         mi.Click += MenuItem_Click;
         menu.Items.Add(mi);
     }
 }
예제 #5
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/AnyPlace;component/UCCustomToolTip.xaml", System.UriKind.Relative));
     this.imgmarker = ((System.Windows.Controls.Image)(this.FindName("imgmarker")));
     this.c_menu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("c_menu")));
     this.nav_here = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("nav_here")));
     this.source_poi = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("source_poi")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/wpTiles;component/PageContextMenu.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.hubMedium = ((Microsoft.Phone.Controls.HubTile)(this.FindName("hubMedium")));
     this.menuFixar = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuFixar")));
     this.menuRemover = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuRemover")));
     this.menuAtualizar = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuAtualizar")));
 }
예제 #7
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MyLocalPharmacy;component/View/Home.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.ListBox1 = ((System.Windows.Controls.ListBox)(this.FindName("ListBox1")));
     this.DeleteMenuItem = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("DeleteMenuItem")));
     this.PinToStartMenuItem = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("PinToStartMenuItem")));
     this.ViewDetailMenuItem = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("ViewDetailMenuItem")));
 }
예제 #8
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/AnyPlace;component/UCCustomToolTip.xaml", System.UriKind.Relative));
     this.imgmarker  = ((System.Windows.Controls.Image)(this.FindName("imgmarker")));
     this.c_menu     = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("c_menu")));
     this.nav_here   = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("nav_here")));
     this.source_poi = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("source_poi")));
 }
예제 #9
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/MyLocalPharmacy;component/View/Home.xaml", System.UriKind.Relative));
     this.LayoutRoot         = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.ContentPanel       = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.ListBox1           = ((System.Windows.Controls.ListBox)(this.FindName("ListBox1")));
     this.DeleteMenuItem     = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("DeleteMenuItem")));
     this.PinToStartMenuItem = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("PinToStartMenuItem")));
     this.ViewDetailMenuItem = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("ViewDetailMenuItem")));
 }
예제 #10
0
		protected override DependencyObject GetContainerForItemOverride()
		{
			var item = new WMenuItem();
			item.SetBinding(HeaderedItemsControl.HeaderProperty, new System.Windows.Data.Binding("Text") { Converter = (System.Windows.Data.IValueConverter)WApplication.Current.Resources["LowerConverter"] });

			item.Click += (sender, args) =>
			{
				IsOpen = false;

				var menuItem = item.DataContext as MenuItem;
				if (menuItem != null)
					menuItem.Activate();
			};
			return item;
		}
예제 #11
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EnterraPokerTimer;component/ToursPage.xaml", System.UriKind.Relative));
     this.ListPickerItemTemplate = ((System.Windows.DataTemplate)(this.FindName("ListPickerItemTemplate")));
     this.ListPickerFullModeItemTemplate = ((System.Windows.DataTemplate)(this.FindName("ListPickerFullModeItemTemplate")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.NamePage = ((System.Windows.Controls.TextBlock)(this.FindName("NamePage")));
     this.MessageEmpty = ((System.Windows.Controls.TextBlock)(this.FindName("MessageEmpty")));
     this.listBox = ((System.Windows.Controls.ListBox)(this.FindName("listBox")));
     this.menu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("menu")));
     this.AddRemove = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("AddRemove")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/contextMenu;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.txbTeste = ((System.Windows.Controls.TextBlock)(this.FindName("txbTeste")));
     this.ContextMenu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("ContextMenu")));
     this.Watch = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("Watch")));
     this.Buy = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("Buy")));
     this.Share = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("Share")));
 }
예제 #13
0
        public static void AttachClickEvent(MenuItem item)
        {
            var message = (Message)item.DataContext;

            if (!message.Likeable)
                item.IsEnabled = false;
            else if (message.LikedByMe == null)
            {
                item.Click += LikeClick;
                item.Header = "like";
            }
            else if (message.LikedByMe != null)
            {
                item.Click += UnlikeClick;
                item.Header = "unlike";
            }
        }
예제 #14
0
        protected override DependencyObject GetContainerForItemOverride()
        {
            var item = new WMenuItem();

            item.SetBinding(HeaderedItemsControl.HeaderProperty, new System.Windows.Data.Binding("Text")
            {
                Converter = (System.Windows.Data.IValueConverter)WApplication.Current.Resources["LowerConverter"]
            });

            item.Click += (sender, args) =>
            {
                IsOpen = false;

                var menuItem = item.DataContext as MenuItem;
                if (menuItem != null)
                {
                    ((IMenuItemController)menuItem).Activate();
                }
            };
            return(item);
        }
예제 #15
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EnterraPokerTimer;component/Views/GamePage.xaml", System.UriKind.Relative));
     this.Game = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("Game")));
     this.ListPickerFullModeItemTemplate = ((System.Windows.DataTemplate)(this.FindName("ListPickerFullModeItemTemplate")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.Media = ((System.Windows.Controls.MediaElement)(this.FindName("Media")));
     this.DisMenu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("DisMenu")));
     this.Dis1 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("Dis1")));
     this.Dis2 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("Dis2")));
     this.Dis3 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("Dis3")));
     this.GameInLanscape = ((System.Windows.Controls.ListBox)(this.FindName("GameInLanscape")));
     this.MainBlind = ((System.Windows.Controls.TextBlock)(this.FindName("MainBlind")));
     this.ListPlayersLand = ((System.Windows.Controls.ListBox)(this.FindName("ListPlayersLand")));
     this.RebuyVisibility = ((System.Windows.Controls.TextBlock)(this.FindName("RebuyVisibility")));
     this.AddonVisibility = ((System.Windows.Controls.TextBlock)(this.FindName("AddonVisibility")));
     this.RebuyColumnSpan = ((System.Windows.Controls.TextBlock)(this.FindName("RebuyColumnSpan")));
     this.RebuyHeaderName = ((System.Windows.Controls.TextBlock)(this.FindName("RebuyHeaderName")));
 }
예제 #16
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Santander;component/View/AfiliacionView.xaml", System.UriKind.Relative));
     this.phoneApplicationPage = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("phoneApplicationPage")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.gApplicationTitle = ((System.Windows.Controls.Grid)(this.FindName("gApplicationTitle")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.w1_6 = ((System.Windows.Controls.StackPanel)(this.FindName("w1_6")));
     this.w1_6_Title = ((System.Windows.Controls.Grid)(this.FindName("w1_6_Title")));
     this.w1_6_input = ((System.Windows.Controls.StackPanel)(this.FindName("w1_6_input")));
     this.tbClaveUsuario = ((System.Windows.Controls.TextBlock)(this.FindName("tbClaveUsuario")));
     this.tbxTipoOperacion = ((System.Windows.Controls.TextBox)(this.FindName("tbxTipoOperacion")));
     this.tbxClaveCliente = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxClaveCliente")));
     this.tbxNIP = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxNIP")));
     this.w2_6 = ((System.Windows.Controls.StackPanel)(this.FindName("w2_6")));
     this.w2_6_Title = ((System.Windows.Controls.Grid)(this.FindName("w2_6_Title")));
     this.w2_6_input = ((System.Windows.Controls.StackPanel)(this.FindName("w2_6_input")));
     this.tbxNuevoNipAcceso = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxNuevoNipAcceso")));
     this.tbxConfirmarNuevoNipAcceso = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxConfirmarNuevoNipAcceso")));
     this.w3_6 = ((System.Windows.Controls.StackPanel)(this.FindName("w3_6")));
     this.w3_6_Title = ((System.Windows.Controls.Grid)(this.FindName("w3_6_Title")));
     this.w3_6_input = ((System.Windows.Controls.StackPanel)(this.FindName("w3_6_input")));
     this.tbxTelefonoCelular = ((System.Windows.Controls.TextBox)(this.FindName("tbxTelefonoCelular")));
     this.tbxCompaniaCelular = ((System.Windows.Controls.TextBox)(this.FindName("tbxCompaniaCelular")));
     this.tbxCorreoElectronico = ((System.Windows.Controls.TextBox)(this.FindName("tbxCorreoElectronico")));
     this.w3_6_Message = ((System.Windows.Controls.StackPanel)(this.FindName("w3_6_Message")));
     this.w3_6_Message2 = ((System.Windows.Controls.StackPanel)(this.FindName("w3_6_Message2")));
     this.w2_3_ST = ((System.Windows.Controls.StackPanel)(this.FindName("w2_3_ST")));
     this.tLeyendaJuridicoSuperToken = ((System.Windows.Controls.TextBlock)(this.FindName("tLeyendaJuridicoSuperToken")));
     this.w4_6 = ((System.Windows.Controls.StackPanel)(this.FindName("w4_6")));
     this.w4_6_Title = ((System.Windows.Controls.Grid)(this.FindName("w4_6_Title")));
     this.w4_6_input = ((System.Windows.Controls.StackPanel)(this.FindName("w4_6_input")));
     this.lstImagenes = ((Santander.View.UserControls.Imagenes)(this.FindName("lstImagenes")));
     this.btnOtrasImagenes = ((System.Windows.Controls.Button)(this.FindName("btnOtrasImagenes")));
     this.tbxFrase = ((System.Windows.Controls.TextBox)(this.FindName("tbxFrase")));
     this.w5_6 = ((System.Windows.Controls.StackPanel)(this.FindName("w5_6")));
     this.w5_6_Title = ((System.Windows.Controls.Grid)(this.FindName("w5_6_Title")));
     this.w5_6_input = ((System.Windows.Controls.StackPanel)(this.FindName("w5_6_input")));
     this.imgSeleccionada = ((System.Windows.Controls.Image)(this.FindName("imgSeleccionada")));
     this.tbFrase = ((System.Windows.Controls.TextBlock)(this.FindName("tbFrase")));
     this.tbxPreguntaSecreta = ((System.Windows.Controls.TextBox)(this.FindName("tbxPreguntaSecreta")));
     this.tbxRespuesta = ((System.Windows.Controls.TextBox)(this.FindName("tbxRespuesta")));
     this.chkRecordarDisp = ((System.Windows.Controls.CheckBox)(this.FindName("chkRecordarDisp")));
     this.w51_6 = ((System.Windows.Controls.StackPanel)(this.FindName("w51_6")));
     this.w51_6_Title = ((System.Windows.Controls.Grid)(this.FindName("w51_6_Title")));
     this.w51_6_input = ((System.Windows.Controls.StackPanel)(this.FindName("w51_6_input")));
     this.imgSeleccionada1 = ((System.Windows.Controls.Image)(this.FindName("imgSeleccionada1")));
     this.tbFrase1 = ((System.Windows.Controls.TextBlock)(this.FindName("tbFrase1")));
     this.pregunta = ((System.Windows.Controls.TextBlock)(this.FindName("pregunta")));
     this.respuesta = ((System.Windows.Controls.TextBlock)(this.FindName("respuesta")));
     this.w6_6 = ((System.Windows.Controls.StackPanel)(this.FindName("w6_6")));
     this.w6_6_Title = ((System.Windows.Controls.Grid)(this.FindName("w6_6_Title")));
     this.w6_6_input = ((System.Windows.Controls.StackPanel)(this.FindName("w6_6_input")));
     this.btnActualizar = ((System.Windows.Controls.Button)(this.FindName("btnActualizar")));
     this.btnProceso = ((System.Windows.Controls.Button)(this.FindName("btnProceso")));
     this.gAyuda = ((System.Windows.Controls.Grid)(this.FindName("gAyuda")));
     this.menu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("menu")));
     this.menuTelefono1 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono1")));
     this.menuTelefono2 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono2")));
     this.progress = ((Santander.View.UserControls.Progress)(this.FindName("progress")));
     this.lstCompaniasCelular = ((Santander.View.UserControls.CustomList)(this.FindName("lstCompaniasCelular")));
     this.lstPreguntas = ((Santander.View.UserControls.CustomList)(this.FindName("lstPreguntas")));
     this.lstTipoOperaciones = ((Santander.View.UserControls.CustomList)(this.FindName("lstTipoOperaciones")));
     this.token = ((Santander.View.UserControls.Token)(this.FindName("token")));
     this.introducirPin = ((Santander.View.UserControls.IntroducirPin)(this.FindName("introducirPin")));
     this.apbAyuda = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("apbAyuda")));
 }
예제 #17
0
        void ellipse_Hold(object sender, System.Windows.Input.GestureEventArgs e)
        {
            Friend selectedFriend= (sender as Ellipse).DataContext as Friend;
            ContextMenu menu = new ContextMenu();
            MenuItem item = new MenuItem();
            item.Header = AppResources.FriendsView_SeeMore;
            item.DataContext = selectedFriend;
            item.Tap += SeeMore;
            menu.Items.Add(item);

            MenuItem itemTwo = new MenuItem();
            itemTwo.Header = AppResources.GPS_GetDirections;
            itemTwo.Tap += GetDirections;
            itemTwo.DataContext = selectedFriend;
            menu.Items.Add(itemTwo);

            ContextMenuService.SetContextMenu(sender as Ellipse, menu);
        }
예제 #18
0
 private static MenuItem WebTask(String uri, String header)
 {
     var item = new MenuItem();
     item.FontSize = 20;
     item.Click += (s, re) =>
     {
         var wbTask = new WebBrowserTask { Uri = new Uri(uri, UriKind.Absolute) };
         wbTask.Show();
     };
     item.Header = header;
     return item;
 }
예제 #19
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Santander;component/View/RenovarNipAccesoView.xaml", System.UriKind.Relative));
     this.apbAyuda = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("apbAyuda")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.gApplicationTitle = ((System.Windows.Controls.Grid)(this.FindName("gApplicationTitle")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.w1_2 = ((System.Windows.Controls.StackPanel)(this.FindName("w1_2")));
     this.w1_2_Title = ((System.Windows.Controls.Grid)(this.FindName("w1_2_Title")));
     this.w1_2_input = ((System.Windows.Controls.StackPanel)(this.FindName("w1_2_input")));
     this.tbUsuario = ((System.Windows.Controls.TextBlock)(this.FindName("tbUsuario")));
     this.tbxNipActual = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxNipActual")));
     this.tbxNuevoNipAcceso = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxNuevoNipAcceso")));
     this.tbxConfirmarNuevoNipAcceso = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxConfirmarNuevoNipAcceso")));
     this.w2_2 = ((System.Windows.Controls.StackPanel)(this.FindName("w2_2")));
     this.w2_2_Title = ((System.Windows.Controls.Grid)(this.FindName("w2_2_Title")));
     this.w2_2_input = ((System.Windows.Controls.StackPanel)(this.FindName("w2_2_input")));
     this.imgEstatus = ((System.Windows.Controls.Image)(this.FindName("imgEstatus")));
     this.w2_3_input = ((System.Windows.Controls.StackPanel)(this.FindName("w2_3_input")));
     this.btnProceso = ((System.Windows.Controls.Button)(this.FindName("btnProceso")));
     this.gAyuda = ((System.Windows.Controls.Grid)(this.FindName("gAyuda")));
     this.menu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("menu")));
     this.menuTelefono1 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono1")));
     this.menuTelefono2 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono2")));
     this.progress = ((Santander.View.UserControls.Progress)(this.FindName("progress")));
 }
예제 #20
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Santander;component/View/VisualizacionView.xaml", System.UriKind.Relative));
     this.phoneApplicationPage = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("phoneApplicationPage")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.gApplicationTitle = ((System.Windows.Controls.Grid)(this.FindName("gApplicationTitle")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.w1_3 = ((System.Windows.Controls.StackPanel)(this.FindName("w1_3")));
     this.Visualizacion3 = ((System.Windows.Controls.StackPanel)(this.FindName("Visualizacion3")));
     this.tbNIP = ((System.Windows.Controls.TextBlock)(this.FindName("tbNIP")));
     this.progressBar = ((System.Windows.Controls.ProgressBar)(this.FindName("progressBar")));
     this.Imagen = ((System.Windows.Controls.Image)(this.FindName("Imagen")));
     this.gAyuda = ((System.Windows.Controls.Grid)(this.FindName("gAyuda")));
     this.menu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("menu")));
     this.menuTelefono1 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono1")));
     this.menuTelefono2 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono2")));
     this.tbObtenerNIPDinamico = ((System.Windows.Controls.TextBlock)(this.FindName("tbObtenerNIPDinamico")));
     this.apbAyuda = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("apbAyuda")));
 }
예제 #21
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Santander;component/View/ActivacionView.xaml", System.UriKind.Relative));
     this.phoneApplicationPage = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("phoneApplicationPage")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.gAyuda = ((System.Windows.Controls.Grid)(this.FindName("gAyuda")));
     this.menu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("menu")));
     this.menuTelefono1 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono1")));
     this.menuTelefono2 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono2")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.gApplicationTitle = ((System.Windows.Controls.Grid)(this.FindName("gApplicationTitle")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.w0_3 = ((System.Windows.Controls.StackPanel)(this.FindName("w0_3")));
     this.w0_3_input = ((System.Windows.Controls.StackPanel)(this.FindName("w0_3_input")));
     this.tbActivacion0 = ((System.Windows.Controls.TextBlock)(this.FindName("tbActivacion0")));
     this.w1_3 = ((System.Windows.Controls.StackPanel)(this.FindName("w1_3")));
     this.w1_3_input = ((System.Windows.Controls.StackPanel)(this.FindName("w1_3_input")));
     this.tbActivacion1 = ((System.Windows.Controls.TextBlock)(this.FindName("tbActivacion1")));
     this.w2_3 = ((System.Windows.Controls.StackPanel)(this.FindName("w2_3")));
     this.w2_3_Title = ((System.Windows.Controls.Grid)(this.FindName("w2_3_Title")));
     this.w2_3_input = ((System.Windows.Controls.StackPanel)(this.FindName("w2_3_input")));
     this.tbAct01 = ((System.Windows.Controls.TextBlock)(this.FindName("tbAct01")));
     this.tbAct02 = ((System.Windows.Controls.TextBlock)(this.FindName("tbAct02")));
     this.tbCodigoCliente = ((System.Windows.Controls.TextBlock)(this.FindName("tbCodigoCliente")));
     this.tbxCodigoCliente = ((System.Windows.Controls.TextBox)(this.FindName("tbxCodigoCliente")));
     this.tbCActivacion = ((System.Windows.Controls.TextBlock)(this.FindName("tbCActivacion")));
     this.tbxCActivacion = ((System.Windows.Controls.TextBox)(this.FindName("tbxCActivacion")));
     this.tbPIN = ((System.Windows.Controls.TextBlock)(this.FindName("tbPIN")));
     this.tbMessage1 = ((System.Windows.Controls.TextBlock)(this.FindName("tbMessage1")));
     this.tbxPIN = ((System.Windows.Controls.TextBox)(this.FindName("tbxPIN")));
     this.tbConfirmarPIN = ((System.Windows.Controls.TextBlock)(this.FindName("tbConfirmarPIN")));
     this.tbxConfirmaPIN = ((System.Windows.Controls.TextBox)(this.FindName("tbxConfirmaPIN")));
     this.Check_CambioPIN = ((System.Windows.Controls.StackPanel)(this.FindName("Check_CambioPIN")));
     this.w3_3_Title = ((System.Windows.Controls.Grid)(this.FindName("w3_3_Title")));
     this.w3_3_input = ((System.Windows.Controls.Grid)(this.FindName("w3_3_input")));
     this.tActivacionSoftToken1 = ((System.Windows.Controls.TextBlock)(this.FindName("tActivacionSoftToken1")));
     this.tFecha = ((System.Windows.Controls.TextBlock)(this.FindName("tFecha")));
     this.tHora = ((System.Windows.Controls.TextBlock)(this.FindName("tHora")));
     this.tReferenciaDeOperacion = ((System.Windows.Controls.TextBlock)(this.FindName("tReferenciaDeOperacion")));
     this.tRegistroFecha = ((System.Windows.Controls.TextBlock)(this.FindName("tRegistroFecha")));
     this.tRegistroHora = ((System.Windows.Controls.TextBlock)(this.FindName("tRegistroHora")));
     this.tRegistroReferenciaOperacion = ((System.Windows.Controls.TextBlock)(this.FindName("tRegistroReferenciaOperacion")));
     this.btnProcess = ((System.Windows.Controls.Button)(this.FindName("btnProcess")));
     this.progress = ((Santander.View.UserControls.Progress)(this.FindName("progress")));
     this.token = ((Santander.View.UserControls.Token)(this.FindName("token")));
     this.MensajeError = ((Santander.View.UserControls.MensajeError)(this.FindName("MensajeError")));
     this.apbAyuda = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("apbAyuda")));
 }
예제 #22
0
        private async void Action_Clicked(object sender, EventArgs e)
        {
            var actionButton = sender as IApplicationBarMenuItem;
            if (actionButton == null)
                return;

            var action = actionButtons.Where(ab => ab.Value == actionButton).Select(ab => ab.Key).FirstOrDefault();
            if (action == null)
                return;

            if (action.CanExecute)
            {
                if (action.Options == null || action.Options.Length == 0)
                    await action.Execute(-1);
                else if (action.Options.Length == 1)
                    await action.Execute(action.Options[0]);
                else
                {
                    var menu = new ContextMenu();
                    menu.VerticalAlignment = VerticalAlignment.Bottom;
                    action.Options.Run(o =>
                    {
                        var menuItem = new MenuItem { DataContext = action, Header = o };
                        menuItem.Click += async (_, __) => await action.Execute(o);
                        menu.Items.Add(menuItem);
                    });

                    ContextMenuService.SetContextMenu(page, menu);
                    RoutedEventHandler closed = null;

                    closed = (_, __) =>
                    {
                        ContextMenuService.SetContextMenu(page, null);
                        menu.Closed -= closed;
                    };

                    menu.Closed += closed;
                    menu.IsOpen = true;
                }
            }
        }
예제 #23
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Santander;component/View/CambioPINView.xaml", System.UriKind.Relative));
     this.phoneApplicationPage = ((Microsoft.Phone.Controls.PhoneApplicationPage)(this.FindName("phoneApplicationPage")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.gApplicationTitle = ((System.Windows.Controls.Grid)(this.FindName("gApplicationTitle")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.w1_3 = ((System.Windows.Controls.StackPanel)(this.FindName("w1_3")));
     this.w1_3_Title = ((System.Windows.Controls.Grid)(this.FindName("w1_3_Title")));
     this.w1_3_input = ((System.Windows.Controls.StackPanel)(this.FindName("w1_3_input")));
     this.tbNIPActual = ((System.Windows.Controls.TextBlock)(this.FindName("tbNIPActual")));
     this.tbxPinActual = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxPinActual")));
     this.tbNuevoNIP = ((System.Windows.Controls.TextBlock)(this.FindName("tbNuevoNIP")));
     this.tbxNuevoPIN = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxNuevoPIN")));
     this.tbConcepto = ((System.Windows.Controls.TextBlock)(this.FindName("tbConcepto")));
     this.tbxConfirmaNuevoPIN = ((System.Windows.Controls.PasswordBox)(this.FindName("tbxConfirmaNuevoPIN")));
     this.Check_CambioPIN = ((System.Windows.Controls.StackPanel)(this.FindName("Check_CambioPIN")));
     this.w2_3_Title = ((System.Windows.Controls.Grid)(this.FindName("w2_3_Title")));
     this.w2_3_input = ((System.Windows.Controls.Grid)(this.FindName("w2_3_input")));
     this.btnProcess = ((System.Windows.Controls.Button)(this.FindName("btnProcess")));
     this.gAyuda = ((System.Windows.Controls.Grid)(this.FindName("gAyuda")));
     this.menu = ((Microsoft.Phone.Controls.ContextMenu)(this.FindName("menu")));
     this.menuTelefono1 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono1")));
     this.menuTelefono2 = ((Microsoft.Phone.Controls.MenuItem)(this.FindName("menuTelefono2")));
     this.progress = ((Santander.View.UserControls.Progress)(this.FindName("progress")));
     this.token = ((Santander.View.UserControls.Token)(this.FindName("token")));
     this.mensajeError = ((Santander.View.UserControls.MensajeError)(this.FindName("mensajeError")));
     this.apbAyuda = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("apbAyuda")));
 }