Пример #1
0
        public void ChangeSettingsView(ApplicationViewManager.Name name)
        {
            _viewModel.ChangeSettingsView(name);

            // Scroll into view
            ListBoxSettings.ScrollIntoView(_viewModel.SelectedSettingsView);
        }
Пример #2
0
        public SettingsView(ApplicationViewManager.Name applicationName)
        {
            InitializeComponent();
            _viewModel = new SettingsViewModel(applicationName);

            DataContext = _viewModel;
        }
        public ApplicationViewInfo(ApplicationViewManager.Name name, PackIconFontAwesome packIconFontAwesome)
        {
            Name           = name;
            TranslatedName = ApplicationViewManager.TranslateName(name);
            Canvas canvas = new Canvas();

            canvas.Children.Add(packIconFontAwesome);
            Icon = canvas;
        }
Пример #4
0
        public ApplicationViewInfo(ApplicationViewManager.Name name, PackIconOcticons packIconOcticons)
        {
            Name           = name;
            TranslatedName = ApplicationViewManager.GetTranslatedNameByName(name);
            var canvas = new Canvas();

            canvas.Children.Add(packIconOcticons);
            Icon = canvas;
        }
        public ApplicationViewInfo(ApplicationViewManager.Name name, PackIconModern packIconModern)
        {
            Name           = name;
            TranslatedName = ApplicationViewManager.GetTranslatedNameByName(name);
            Canvas canvas = new Canvas();

            canvas.Children.Add(packIconModern);
            Icon = canvas;
        }
        public ApplicationViewInfo(ApplicationViewManager.Name name, PackIconMaterialLight packIconMaterialLight)
        {
            Name           = name;
            TranslatedName = ApplicationViewManager.TranslateName(name);
            Canvas canvas = new Canvas();

            canvas.Children.Add(packIconMaterialLight);
            Icon = canvas;
        }
 public void ChangeSettingsView(ApplicationViewManager.Name applicationName)
 {
     if (Enum.GetNames(typeof(SettingsViewManager.Name)).Contains(applicationName.ToString()) && ApplicationViewManager.Name.None.ToString() != applicationName.ToString())
     {
         SelectedSettingsView = SettingsViews.SourceCollection.Cast <SettingsViewInfo>().FirstOrDefault(x => x.Name.ToString() == applicationName.ToString());
     }
     else
     {
         SelectedSettingsView = SettingsViews.SourceCollection.Cast <SettingsViewInfo>().FirstOrDefault(x => x.Name == SettingsViewManager.Name.General);
     }
 }
Пример #8
0
        public DragablzTabHostWindow(ApplicationViewManager.Name applicationName)
        {
            InitializeComponent();
            DataContext = this;

            _applicationName = applicationName;

            InterTabController.Partition = applicationName.ToString();

            ApplicationTitle = ApplicationViewManager.GetTranslatedNameByName(applicationName);

            SettingsManager.Current.PropertyChanged += SettingsManager_PropertyChanged;
        }
Пример #9
0
        public void ChangeSettingsView(ApplicationViewManager.Name applicationName)
        {
            // Don't change the view, if the user has filtered the settings...
            if (!string.IsNullOrEmpty(Search))
            {
                return;
            }

            if (Enum.GetNames(typeof(SettingsViewManager.Name)).Contains(applicationName.ToString()) && ApplicationViewManager.Name.None.ToString() != applicationName.ToString())
            {
                SelectedSettingsView = SettingsViews.SourceCollection.Cast <SettingsViewInfo>().FirstOrDefault(x => x.Name.ToString() == applicationName.ToString());
            }
            else
            {
                SelectedSettingsView = SettingsViews.SourceCollection.Cast <SettingsViewInfo>().FirstOrDefault(x => x.Name == SettingsViewManager.Name.General);
            }
        }
Пример #10
0
        public DragablzTabHostWindow(ApplicationViewManager.Name applicationName)
        {
            InitializeComponent();
            DataContext = this;

            // Transparency
            if (SettingsManager.Current.Appearance_EnableTransparency)
            {
                AllowsTransparency = true;
                Opacity            = SettingsManager.Current.Appearance_Opacity;
            }

            _applicationName = applicationName;

            InterTabClient = new DragablzInterTabClient(applicationName);

            InterTabController.Partition = applicationName.ToString();

            ApplicationTitle = ApplicationViewManager.GetTranslatedNameByName(applicationName);

            SettingsManager.Current.PropertyChanged += SettingsManager_PropertyChanged;
        }
Пример #11
0
        private void RefreshApplicationView(ApplicationViewManager.Name name)
        {
            switch (name)
            {
            case ApplicationViewManager.Name.NetworkInterface:
                _networkInterfaceView.Refresh();
                break;

            case ApplicationViewManager.Name.IPScanner:
                _ipScannerHostView.Refresh();
                break;

            case ApplicationViewManager.Name.PortScanner:
                _portScannerHostView.Refresh();
                break;

            case ApplicationViewManager.Name.Ping:
                _pingHostView.Refresh();
                break;

            case ApplicationViewManager.Name.Traceroute:
                _tracerouteHostView.Refresh();
                break;

            case ApplicationViewManager.Name.RemoteDesktop:
                _remoteDesktopHostView.Refresh();
                break;

            case ApplicationViewManager.Name.PuTTY:
                _puTTYHostView.Refresh();
                break;

            case ApplicationViewManager.Name.WakeOnLAN:
                _wakeOnLANView.Refresh();
                break;
            }
        }
Пример #12
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;
        }
Пример #13
0
 public static void RedirectDataToApplication(ApplicationViewManager.Name application, string data)
 {
     RedirectDataToApplicationEvent?.Invoke(null, new EventSystemRedirectDataApplicationArgs(application, data));
 }
Пример #14
0
 public static void RedirectToApplication(ApplicationViewManager.Name application, string data)
 {
     RedirectToApplicationEvent?.Invoke(typeof(string), new EventSystemRedirectArgs(application, data));
 }
Пример #15
0
 public EventSystemRedirectDataApplicationArgs(ApplicationViewManager.Name application, string args)
 {
     Application = application;
     Args        = args;
 }
Пример #16
0
 public EventSystemRedirectProfileApplicationArgs(ApplicationViewManager.Name application, ProfileInfo profile)
 {
     Application = application;
     Profile     = profile;
 }
 public DragablzInterTabClient(ApplicationViewManager.Name applicationName)
 {
     _applicationName = applicationName;
 }
Пример #18
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.SubnetCalculator:
                if (subnetCalculatorView == null)
                {
                    subnetCalculatorView = new SubnetCalculatorView();
                }

                contentControlApplication.Content = subnetCalculatorView;
                break;

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

                contentControlApplication.Content = wakeOnLANView;
                break;

            case ApplicationViewManager.Name.Ping:
                if (pingView == null)
                {
                    pingView = new PingView();
                }

                contentControlApplication.Content = pingView;
                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.Wiki:
                if (wikiView == null)
                {
                    wikiView = new WikiView();
                }

                contentControlApplication.Content = wikiView;
                break;
            }

            currentApplicationViewName = name;
        }
Пример #19
0
 public static void RedirectProfileToApplication(ApplicationViewManager.Name application, ProfileInfo profile)
 {
     RedirectProfileToApplicationEvent?.Invoke(typeof(string), new EventSystemRedirectProfileApplicationArgs(application, profile));
 }
Пример #20
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;
        }
Пример #21
0
        public static DocumentationIdentifier GetIdentifierByAppliactionName(ApplicationViewManager.Name name)
        {
            switch (name)
            {
            case ApplicationViewManager.Name.Dashboard:
                return(DocumentationIdentifier.ApplicationDashboard);

            case ApplicationViewManager.Name.NetworkInterface:
                return(DocumentationIdentifier.ApplicationNetworkInterface);

            case ApplicationViewManager.Name.WiFi:
                return(DocumentationIdentifier.ApplicationWiFi);

            case ApplicationViewManager.Name.IPScanner:
                return(DocumentationIdentifier.ApplicationIpScanner);

            case ApplicationViewManager.Name.PortScanner:
                return(DocumentationIdentifier.ApplicationPortScanner);

            case ApplicationViewManager.Name.Ping:
                return(DocumentationIdentifier.ApplicationPing);

            case ApplicationViewManager.Name.Traceroute:
                return(DocumentationIdentifier.ApplicationTraceroute);

            case ApplicationViewManager.Name.DNSLookup:
                return(DocumentationIdentifier.ApplicationDnsLookup);

            case ApplicationViewManager.Name.RemoteDesktop:
                return(DocumentationIdentifier.ApplicationRemoteDesktop);

            case ApplicationViewManager.Name.PowerShell:
                return(DocumentationIdentifier.ApplicationPowerShell);

            case ApplicationViewManager.Name.PuTTY:
                return(DocumentationIdentifier.ApplicationPutty);

            case ApplicationViewManager.Name.TigerVNC:
                return(DocumentationIdentifier.ApplicationTigerVNC);

            case ApplicationViewManager.Name.SNMP:
                return(DocumentationIdentifier.ApplicationSnmp);

            case ApplicationViewManager.Name.WakeOnLAN:
                return(DocumentationIdentifier.ApplicationWakeOnLan);

            case ApplicationViewManager.Name.HTTPHeaders:
                return(DocumentationIdentifier.ApplicationHttpHeaders);

            case ApplicationViewManager.Name.Whois:
                return(DocumentationIdentifier.ApplicationWhois);

            case ApplicationViewManager.Name.SubnetCalculator:
                return(DocumentationIdentifier.ApplicationSubnetCalculator);

            case ApplicationViewManager.Name.Lookup:
                return(DocumentationIdentifier.ApplicationLookup);

            case ApplicationViewManager.Name.Connections:
                return(DocumentationIdentifier.ApplicationConnections);

            case ApplicationViewManager.Name.Listeners:
                return(DocumentationIdentifier.ApplicationListeners);

            case ApplicationViewManager.Name.ARPTable:
                return(DocumentationIdentifier.ApplicationArpTable);

            case ApplicationViewManager.Name.None:
                return(DocumentationIdentifier.Default);

            default:
                return(DocumentationIdentifier.Default);
            }
        }
 public ApplicationViewInfo(ApplicationViewManager.Name name)
 {
     Name = name;
     IsVisible = true;
 }
        public SettingsViewModel(ApplicationViewManager.Name applicationName)
        {
            LoadSettings();

            ChangeSettingsView(applicationName);
        }
Пример #24
0
 public ApplicationViewInfo(ApplicationViewManager.Name name, Canvas icon)
 {
     Name           = name;
     TranslatedName = ApplicationViewManager.GetTranslatedNameByName(name);
     Icon           = icon;
 }
 public EventSystemRedirectArgs(ApplicationViewManager.Name application, string data)
 {
     Application = application;
     Data        = data;
 }