예제 #1
0
    public void ChangeObject()
    {
        if (currentObjectType == 0)
        {
            UIAppelTéléphonique = UICell.GetCurrentCall();
            if (UIAppelTéléphonique != null)
            {
                UIAppelTéléphonique.contentUpdate.AddListener(newContent);
            }
        }

        if (currentObjectType == 1)
        {
            UIFichierActif = UIOrdinateur.GetFichierActif();
            if (UIFichierActif != null)
            {
                UIFichierActif.contentUpdate.AddListener(newContent);
            }
        }

        UpdateHeader();
        currentCategoryTab = 0;
        InstanciateCategoryTab();

        ActivateListener();
    }
예제 #2
0
    public void GetComputer(Ordinateur ordinateur)
    {
        DisableListener();

        UIOrdinateur       = ordinateur;
        UIFichierActif     = ordinateur.GetFichierActif();
        currentObjectType  = 1;
        currentCategoryTab = 0;

        ChangeObject();
    }