public WorkspacerConfiguration GetConfiguration()
        {
            if (WorkspacerConfiguration == null)
            {
                WorkspacerConfiguration = new WorkspacerConfiguration {
                    Launcher = "\"%1\""
                };
            }
            var items = DataAccessService
                        .GetQuery("select key, value from configuration;")
                        .Returning <ConfigurationItem>()
                        .Reading("key", (ConfigurationItem item, string data) => item.Key     = data)
                        .Reading("value", (ConfigurationItem item, string data) => item.Value = data)
                        .Execute();

            foreach (var item in items)
            {
                switch (item.Key)
                {
                case nameof(WorkspacerConfiguration.Launcher):
                    WorkspacerConfiguration.Launcher = item.Value;
                    break;

                default:
                    break;
                }
            }
            return(WorkspacerConfiguration);
        }
 public void SaveConfiguration(WorkspacerConfiguration configuration)
 {
     WorkspacerConfiguration = configuration;
     SaveConfigurationItem(nameof(WorkspacerConfiguration.Launcher), WorkspacerConfiguration.Launcher);
 }
 public void SaveConfiguration(WorkspacerConfiguration configuration)
 {
     _luncherPattern = configuration.Launcher;
     WorkspacerConfigurationRepository.SaveConfiguration(configuration);
 }