コード例 #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);
            }
        }
コード例 #2
0
 public MacEnvironmentCommand(HotReloadCommands commandType)
 {
     MacExtensionInitializer.RegisterCommand(commandType, this);
 }