public ProcessViewUpdateTask(ProcessView viewModel,
                              NonBlockingChannel statusChannel,
                              Dispatcher dispatcher)
 {
     _ViewModel = viewModel;
     _StatusChannel = statusChannel;
     _Dispatcher = dispatcher;
 }
        void App_Startup(object sender, StartupEventArgs e)
        {
            var viewModel = new ProcessView();
            var statusChannel = new NonBlockingChannel();
            var uiTask = new ProcessViewUpdateTask(viewModel, statusChannel, Dispatcher);

            var viewer = new Window1();
            viewer.DataContext = viewModel;
            viewer.Show();

            var orchestration = new StarbucksOrchestration();
            orchestration.Process(statusChannel, uiTask);
        }
예제 #3
0
        /// <summary>
        /// Load a window
        /// </summary>
        /// <param name="parameter">The window name</param>
        public void LoadWindow(object parameter = null)
        {
            if (parameter is string)
            {
                string windowName = (string)parameter;

                switch (windowName)
                {
                case ("Shares"):
                {
                    ShareView sv = new ShareView();
                    sv.Show();
                    break;
                }

                case ("Network Adapters"):
                {
                    NetworkAdapterView nav = new NetworkAdapterView();
                    nav.Show();
                    break;
                }

                case ("IP4 Routes"):
                {
                    IP4RoutingTableView iprv = new IP4RoutingTableView();
                    iprv.Show();
                    break;
                }

                case ("User Sessions"):
                {
                    UserSessionView usv = new UserSessionView();
                    usv.Show();
                    break;
                }

                case ("Computer Sessions"):
                {
                    ComputerSessionView csv = new ComputerSessionView();
                    csv.Show();
                    break;
                }

                case ("Computer System"):
                {
                    ComputerSystemView cosv = new ComputerSystemView();
                    cosv.Show();
                    break;
                }

                case ("Environment Variables"):
                {
                    EnvironmentVariableView evv = new EnvironmentVariableView();
                    evv.Show();
                    break;
                }

                case ("Startup Entries"):
                {
                    StartupEntryView sev = new StartupEntryView();
                    sev.Show();
                    break;
                }

                case ("Recently Used"):
                {
                    RecentlyUsedEntryView reuv = new RecentlyUsedEntryView();
                    reuv.Show();
                    break;
                }

                case ("Updates"):
                {
                    UpdateView uv = new UpdateView();
                    uv.Show();
                    break;
                }

                case ("Processes"):
                {
                    ProcessView pv = new ProcessView();
                    pv.Show();
                    break;
                }

                case ("BIOS"):
                {
                    BIOSView vb = new BIOSView();
                    vb.Show();
                    break;
                }

                case ("Services"):
                {
                    WindowsServiceView wsv = new WindowsServiceView();
                    wsv.Show();
                    break;
                }

                case ("ARP Table"):
                {
                    ARPTableView atv = new ARPTableView();
                    atv.Show();
                    break;
                }

                case ("WLAN Sessions"):
                {
                    WLANSessionView wsv = new WLANSessionView();
                    wsv.Show();
                    break;
                }

                case ("Installed Programs"):
                {
                    InstalledProgramView ipv = new InstalledProgramView();
                    ipv.Show();
                    break;
                }

                case ("USB Device History"):
                {
                    USBDeviceHistoryView udhv = new USBDeviceHistoryView();
                    udhv.ShowDialog();
                    break;
                }

                case ("Users And Groups"):
                {
                    GroupUserView guv = new GroupUserView();
                    guv.ShowDialog();
                    break;
                }

                case ("User Assist"):
                {
                    UserAssistView uaw = new UserAssistView();
                    uaw.ShowDialog();
                    break;
                }

                case ("Recent Apps"):
                {
                    RecentAppView rav = new RecentAppView();
                    rav.ShowDialog();
                    break;
                }

                case ("Shim Cache"):
                {
                    ShimCacheView scv = new ShimCacheView();
                    scv.ShowDialog();
                    break;
                }

                case ("Prefetch"):
                {
                    PrefetchView pfv = new PrefetchView();
                    pfv.ShowDialog();
                    break;
                }

                case ("SRUM App Usage"):
                {
                    SRUMView sv = new SRUMView();
                    sv.ShowDialog();
                    break;
                }

                case ("SRUM Network Connectivity"):
                {
                    SRUMNetworkView snv = new SRUMNetworkView();
                    snv.ShowDialog();
                    break;
                }

                case ("BAM Data"):
                {
                    BAMView bv = new BAMView();
                    bv.ShowDialog();
                    break;
                }
                }
            }
        }
예제 #4
0
 public MonoStruct(ProcessView view, MonoClass mClass, uint pStruct)
 {
     _view   = view;
     Class   = mClass;
     PStruct = pStruct;
 }
예제 #5
0
 public MonoImage(ProcessView view, uint pImage)
 {
     _view   = view;
     _pImage = pImage;
     LoadAllTypes();
 }
예제 #6
0
 public MonoClassField(ProcessView view, uint pField)
 {
     _view   = view;
     _pField = pField;
 }
예제 #7
0
        public ProcessView GetNewModel()
        {
            var model = new ProcessView();

            return(model);
        }
예제 #8
0
 public MonoObject(ProcessView view, uint pObject)
 {
     PObject = pObject;
     _view   = view;
     _vtable = _view.ReadUint(PObject);
 }
예제 #9
0
        public ActionResult GetDocumentData(dynamic modelDoc, Guid idProcess, string viewType)
        {
            ProcessView process = _ProcessService.FindView(idProcess);

            return(PartialView("~/Views/Custom/" + process.TableName + "_" + viewType + ".cshtml", modelDoc));
        }
예제 #10
0
 public void ShowProcessList(Client client, List <ProcessInfo> processes)
 {
     ProcessView.PrintProcesses(client, processes);
     CurrentView.PrintBanner();
 }