Пример #1
0
    private void AddSupportedConfigAndGoBack(ServerConfiguration config)
    {
        if (ServerConfigurationModel.IsServerConfigurationNameValid(config.Name) == false)
        {
            //TODO: Show error saying there already is a config with this name, or something
            return;
        }
        var configClone = config.Clone();

        ServerConfigurationModel.AddServerConfiguration(configClone);
        OnBackButtonClicked();
    }