Ejemplo n.º 1
0
        private static string GetImportExportOptionFileName(ImportExportOptions importExportOption)
        {
            switch (importExportOption)
            {
            case ImportExportOptions.ApplicationSettings:
                return(SettingsManager.GetSettingsFileName());

            case ImportExportOptions.NetworkInterfaceProfiles:
                return(NetworkInterfaceProfileManager.ProfilesFileName);

            case ImportExportOptions.IPScannerProfiles:
                return(IPScannerProfileManager.ProfilesFileName);

            case ImportExportOptions.WakeOnLANClients:
                return(WakeOnLANClientManager.ClientsFileName);

            case ImportExportOptions.PortScannerProfiles:
                return(PortScannerProfileManager.ProfilesFileName);

            case ImportExportOptions.RemoteDesktopSessions:
                return(RemoteDesktopSessionManager.SessionsFileName);
            }

            return(string.Empty);
        }
Ejemplo n.º 2
0
        public static ImportExportOptions GetImportExportOption(string fileName)
        {
            if (fileName == SettingsManager.GetSettingsFileName())
            {
                return(ImportExportOptions.ApplicationSettings);
            }

            if (fileName == NetworkInterfaceProfileManager.ProfilesFileName)
            {
                return(ImportExportOptions.NetworkInterfaceProfiles);
            }

            if (fileName == IPScannerProfileManager.ProfilesFileName)
            {
                return(ImportExportOptions.IPScannerProfiles);
            }

            if (fileName == WakeOnLANClientManager.ClientsFileName)
            {
                return(ImportExportOptions.WakeOnLANClients);
            }

            if (fileName == PortScannerProfileManager.ProfilesFileName)
            {
                return(ImportExportOptions.PortScannerProfiles);
            }

            if (fileName == RemoteDesktopSessionManager.SessionsFileName)
            {
                return(ImportExportOptions.RemoteDesktopSessions);
            }

            return(ImportExportOptions.None);
        }
Ejemplo n.º 3
0
        private static string GetImportExportOptionFileName(ImportExportOptions importExportOption)
        {
            switch (importExportOption)
            {
            case ImportExportOptions.Settings:
                return(SettingsManager.GetSettingsFileName());

            case ImportExportOptions.Profiles:
                return(ProfileManager.ProfilesFileName);
            }

            return(string.Empty);
        }
Ejemplo n.º 4
0
        public static ImportExportOptions GetImportExportOption(string fileName)
        {
            if (fileName == SettingsManager.GetSettingsFileName())
            {
                return(ImportExportOptions.Settings);
            }

            if (fileName == ProfileManager.ProfilesFileName)
            {
                return(ImportExportOptions.Profiles);
            }

            return(ImportExportOptions.None);
        }
Ejemplo n.º 5
0
        private static string GetImportExportOptionFileName(ImportExportOptions importExportOption)
        {
            switch (importExportOption)
            {
            case ImportExportOptions.ApplicationSettings:
                return(SettingsManager.GetSettingsFileName());

            case ImportExportOptions.NetworkInterfaceProfiles:
                return(NetworkInterfaceProfileManager.ProfilesFileName);

            case ImportExportOptions.WakeOnLANClients:
                return(WakeOnLANClientManager.ClientsFileName);
            }

            return(string.Empty);
        }
Ejemplo n.º 6
0
        public static ImportExportOptions GetImportExportOption(string fileName)
        {
            if (fileName == SettingsManager.GetSettingsFileName())
            {
                return(ImportExportOptions.ApplicationSettings);
            }

            if (fileName == NetworkInterfaceProfileManager.ProfilesFileName)
            {
                return(ImportExportOptions.NetworkInterfaceProfiles);
            }

            if (fileName == WakeOnLANClientManager.ClientsFileName)
            {
                return(ImportExportOptions.WakeOnLANClients);
            }

            return(ImportExportOptions.None);
        }