Exemple #1
0
        public static void RegisterCommand(HotReloadCommands commandType, MacEnvironmentCommand environmentCommand)
        {
            if (RegisteredCommandInstances.ContainsKey(commandType))
            {
                RegisteredCommandInstances[commandType] = environmentCommand;
            }

            if (RegisteredCommandInstances.All((arg) => arg.Value != null))
            {
                Main.Init(_devEnviromentService, RegisteredCommandInstances, _guiService, _settingsService);
            }
        }
 public MacEnvironmentCommand(HotReloadCommands commandType)
 {
     MacExtensionInitializer.RegisterCommand(commandType, this);
 }