Exemplo n.º 1
0
    public void LoadCode(Dropdown sourceCode)
    {
        int result = -1;

        result = PanelLoadBg.TryToLoadCodeToProgrammableObjectStatic(sourceCode);
        if (result != 0 && sourceCodeComponent != null)
        {
            result = sourceCodeComponent.LoadCode(sourceCode);
        }
        if (result == 0)
        {
            DebugMessage.SuccessMessage(TranslationManager.GetMessage("LoadedSuccessfully"));
        }
        else
        {
            DebugMessage.ErrorMessage(TranslationManager.GetMessage("ErrorLoading"));
        }
        PanelLoadBg.ExitAnimation();
    }