예제 #1
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;
                }
                }
            }
        }
예제 #2
0
        private void ChangeApplicationView(ApplicationViewManager.Name name)
        {
            if (currentApplicationViewName == name)
            {
                return;
            }

            switch (name)
            {
            case ApplicationViewManager.Name.NetworkInterface:
                if (networkInterfaceView == null)
                {
                    networkInterfaceView = new NetworkInterfaceView();
                }

                contentControlApplication.Content = networkInterfaceView;
                break;

            case ApplicationViewManager.Name.IPScanner:
                if (ipScannerView == null)
                {
                    ipScannerView = new IPScannerView();
                }

                contentControlApplication.Content = ipScannerView;
                break;

            case ApplicationViewManager.Name.PortScanner:
                if (portScannerView == null)
                {
                    portScannerView = new PortScannerView();
                }

                contentControlApplication.Content = portScannerView;
                break;

            case ApplicationViewManager.Name.Ping:
                if (pingHostView == null)
                {
                    pingHostView = new PingHostView();
                }

                contentControlApplication.Content = pingHostView;
                break;

            case ApplicationViewManager.Name.Traceroute:
                if (tracerouteView == null)
                {
                    tracerouteView = new TracerouteView();
                }

                contentControlApplication.Content = tracerouteView;
                break;

            case ApplicationViewManager.Name.DNSLookup:
                if (dnsLookupView == null)
                {
                    dnsLookupView = new DNSLookupView();
                }

                contentControlApplication.Content = dnsLookupView;
                break;

            case ApplicationViewManager.Name.RemoteDesktop:
                if (remoteDesktopView == null)
                {
                    remoteDesktopView = new RemoteDesktopView();
                }

                contentControlApplication.Content = remoteDesktopView;
                break;

            case ApplicationViewManager.Name.PuTTY:
                if (puTTYView == null)
                {
                    puTTYView = new PuTTYView();
                }

                contentControlApplication.Content = puTTYView;
                break;

            case ApplicationViewManager.Name.SNMP:
                if (snmpView == null)
                {
                    snmpView = new SNMPView();
                }

                contentControlApplication.Content = snmpView;
                break;

            case ApplicationViewManager.Name.WakeOnLAN:
                if (wakeOnLANView == null)
                {
                    wakeOnLANView = new WakeOnLANView();
                }

                contentControlApplication.Content = wakeOnLANView;
                break;

            case ApplicationViewManager.Name.SubnetCalculator:
                if (subnetCalculatorHostView == null)
                {
                    subnetCalculatorHostView = new SubnetCalculatorHostView();
                }

                contentControlApplication.Content = subnetCalculatorHostView;
                break;

            case ApplicationViewManager.Name.HTTPHeaders:
                if (httpHeadersView == null)
                {
                    httpHeadersView = new HTTPHeadersView();
                }

                contentControlApplication.Content = httpHeadersView;
                break;

            case ApplicationViewManager.Name.ARPTable:
                if (arpTableView == null)
                {
                    arpTableView = new ARPTableView();
                }

                contentControlApplication.Content = arpTableView;
                break;

            case ApplicationViewManager.Name.Lookup:
                if (lookupHostView == null)
                {
                    lookupHostView = new LookupHostView();
                }

                contentControlApplication.Content = lookupHostView;
                break;
            }

            currentApplicationViewName = name;
        }
예제 #3
0
        private void ChangeApplicationView(ApplicationViewManager.Name name)
        {
            if (currentApplicationViewName == name)
            {
                return;
            }

            switch (name)
            {
            case ApplicationViewManager.Name.NetworkInterface:
                if (_networkInterfaceView == null)
                {
                    _networkInterfaceView = new NetworkInterfaceView();
                }
                else
                {
                    RefreshApplicationView(name);
                }

                contentControlApplication.Content = _networkInterfaceView;
                break;

            case ApplicationViewManager.Name.IPScanner:
                if (_ipScannerHostView == null)
                {
                    _ipScannerHostView = new IPScannerHostView();
                }

                contentControlApplication.Content = _ipScannerHostView;
                break;

            case ApplicationViewManager.Name.PortScanner:
                if (_portScannerHostView == null)
                {
                    _portScannerHostView = new PortScannerHostView();
                }

                contentControlApplication.Content = _portScannerHostView;
                break;

            case ApplicationViewManager.Name.Ping:
                if (_pingHostView == null)
                {
                    _pingHostView = new PingHostView();
                }

                contentControlApplication.Content = _pingHostView;
                break;

            case ApplicationViewManager.Name.Traceroute:
                if (_tracerouteHostView == null)
                {
                    _tracerouteHostView = new TracerouteHostView();
                }

                contentControlApplication.Content = _tracerouteHostView;
                break;

            case ApplicationViewManager.Name.DNSLookup:
                if (_dnsLookupHostView == null)
                {
                    _dnsLookupHostView = new DNSLookupHostView();
                }

                contentControlApplication.Content = _dnsLookupHostView;
                break;

            case ApplicationViewManager.Name.RemoteDesktop:
                if (_remoteDesktopHostView == null)
                {
                    _remoteDesktopHostView = new RemoteDesktopHostView();
                }

                contentControlApplication.Content = _remoteDesktopHostView;
                break;

            case ApplicationViewManager.Name.PuTTY:
                if (_puTTYHostView == null)
                {
                    _puTTYHostView = new PuTTYHostView();
                }

                contentControlApplication.Content = _puTTYHostView;
                break;

            case ApplicationViewManager.Name.SNMP:
                if (_snmpHostView == null)
                {
                    _snmpHostView = new SNMPHostView();
                }

                contentControlApplication.Content = _snmpHostView;
                break;

            case ApplicationViewManager.Name.WakeOnLAN:
                if (_wakeOnLANView == null)
                {
                    _wakeOnLANView = new WakeOnLANView();
                }

                contentControlApplication.Content = _wakeOnLANView;
                break;

            case ApplicationViewManager.Name.HTTPHeaders:
                if (_httpHeadersHostView == null)
                {
                    _httpHeadersHostView = new HTTPHeadersHostView();
                }

                contentControlApplication.Content = _httpHeadersHostView;
                break;

            case ApplicationViewManager.Name.SubnetCalculator:
                if (_subnetCalculatorHostView == null)
                {
                    _subnetCalculatorHostView = new SubnetCalculatorHostView();
                }

                contentControlApplication.Content = _subnetCalculatorHostView;
                break;

            case ApplicationViewManager.Name.Lookup:
                if (_lookupHostView == null)
                {
                    _lookupHostView = new LookupHostView();
                }

                contentControlApplication.Content = _lookupHostView;
                break;

            case ApplicationViewManager.Name.Connections:
                if (_connectionsView == null)
                {
                    _connectionsView = new ConnectionsView();
                }

                contentControlApplication.Content = _connectionsView;
                break;

            case ApplicationViewManager.Name.Listeners:
                if (_listenersView == null)
                {
                    _listenersView = new ListenersView();
                }

                contentControlApplication.Content = _listenersView;
                break;

            case ApplicationViewManager.Name.ARPTable:
                if (_arpTableView == null)
                {
                    _arpTableView = new ARPTableView();
                }

                contentControlApplication.Content = _arpTableView;
                break;
            }

            currentApplicationViewName = name;
        }