Ejemplo n.º 1
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            var irp = (IrpViewModel)e.Parameter;

            if (irp != null)
            {
                if (irp.Model.header.Type != (uint)IrpMajorType.IRP_MJ_DEVICE_CONTROL)
                {
                    await Utils.ShowPopUp("Only IRP_MJ_DEVICE_CONTROL IRP can be replayed");

                    if (Frame.CanGoBack)
                    {
                        Frame.GoBack();
                    }
                    else
                    {
                        Frame.Navigate(typeof(Views.MonitoredIrpsPage));
                    }
                    return;
                }

                ViewModel = irp;
            }
        }
Ejemplo n.º 2
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            var irp = (IrpViewModel)e.Parameter;

            if (irp == null)
            {
                await Utils.ShowPopUp("No IRP passed to the page");

                Frame.GoBack();
            }
            else
            {
                ViewModel = irp;
            }
        }
Ejemplo n.º 3
0
 private void OnLoading(FrameworkElement sender, object args)
 {
     ViewModel = new IrpViewModel();
     ViewModel.Model.header.Type = (uint)IrpMajorType.IRP_MJ_DEVICE_CONTROL;
 }