Пример #1
0
        public string ChefmateDatabaseLocation()
        {
            MenumateServicesConfigurationManager configurationManager = MenumateServicesConfigurationManager.Instance;

            ReloadConfigurationFile();

            return(configurationManager.UniqueDatabaseServer ?
                   configurationManager.UniqueDatabaseServerFolder : configurationManager.ChefmateDatabaseServerFolder);
        }
Пример #2
0
        public string ChefmateDatabaseServerPath()
        {
            MenumateServicesConfigurationManager configurationManager = MenumateServicesConfigurationManager.Instance;

            ReloadConfigurationFile();

            return(configurationManager.UniqueDatabaseServer ?
                   configurationManager.UniqueDatabaseServerName : configurationManager.ChefmateDatabaseServerName);
        }
Пример #3
0
        public ClippIntergrationWebService()
        {
            MenumateServicesConfigurationManager configurationManager = MenumateServicesConfigurationManager.Instance;

            _baseAddress = configurationManager.ClippIpAddress;
            _port        = configurationManager.ClippPort;

            _httpClientHandler = new HttpClientHandler()
            {
                Credentials     = new NetworkCredential("CLIPP", "12345678"),
                PreAuthenticate = true
            };
        }
Пример #4
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            const string version = "6.0";

            lbVersion.Text        = string.Format(@"Version {0}", version);
            _configurationManager = MenumateServicesConfigurationManager.Instance;

            InitializeDatabaseFolders();
            LoadExistingSettings();

            if (_configurationManager.UniqueDatabaseServer)
            {
                EnableUniqueDbServerSettings(true);
                EnableDatabaseServersSettings(false);
            }
            else
            {
                EnableUniqueDbServerSettings(false);
                EnableDatabaseServersSettings(true);
            }

            _modifiedTimer     = CreateModifiedTimer();
            lbWarnning.Visible = false;
        }
Пример #5
0
        public void ReloadConfigurationFile()
        {
            MenumateServicesConfigurationManager configurationManager = MenumateServicesConfigurationManager.Instance;

            configurationManager.Reload();
        }
Пример #6
0
        public string CinfigurationFilePath()
        {
            MenumateServicesConfigurationManager configurationManager = MenumateServicesConfigurationManager.Instance;

            return(configurationManager.FilePath);
        }