Example #1
0
    SectionBase ISectionFactory.GetSectionController(SectionsController.SectionId id)
    {
        SectionBase result = null;

        switch (id)
        {
        case SectionsController.SectionId.SCENES_MAIN:
            result = new SectionScenesController();
            break;

        case SectionsController.SectionId.SCENES_DEPLOYED:
            break;

        case SectionsController.SectionId.SCENES_PROJECT:
            result = new SectionProjectScenesController();
            break;

        case SectionsController.SectionId.LAND:
            break;

        case SectionsController.SectionId.SETTINGS_PROJECT_GENERAL:
            result = new SectionSceneGeneralSettingsController();
            break;
        }

        return(result);
    }
        SectionBase ISectionFactory.GetSectionController(SectionsController.SectionId id)
        {
            SectionBase result = null;

            switch (id)
            {
            case SectionsController.SectionId.SCENES_MAIN:
                result = sectionScenesMain;
                break;

            case SectionsController.SectionId.SCENES_DEPLOYED:
                break;

            case SectionsController.SectionId.SCENES_PROJECT:
                result = sectionScenesProjects;
                break;

            case SectionsController.SectionId.LAND:
                break;
            }

            return(result);
        }
Example #3
0
    SectionBase ISectionFactory.GetSectionController(SectionsController.SectionId id)
    {
        SectionBase result = null;

        switch (id)
        {
        case SectionsController.SectionId.SCENES_MAIN:
            result = new SectionScenesController();
            break;

        case SectionsController.SectionId.SCENES_DEPLOYED:
            result = new SectionDeployedScenesController();
            break;

        case SectionsController.SectionId.SCENES_PROJECT:
            result = new SectionProjectScenesController();
            break;

        case SectionsController.SectionId.LAND:
            result = new SectionLandController();
            break;

        case SectionsController.SectionId.SETTINGS_PROJECT_GENERAL:
            result = new SectionSceneGeneralSettingsController();
            break;

        case SectionsController.SectionId.SETTINGS_PROJECT_CONTRIBUTORS:
            result = new SectionSceneContributorsSettingsController();
            break;

        case SectionsController.SectionId.SETTINGS_PROJECT_ADMIN:
            result = new SectionSceneAdminsSettingsController();
            break;
        }

        return(result);
    }
    SectionBase ISectionFactory.GetSectionController(SectionsController.SectionId id)
    {
        SectionBase result = null;

        switch (id)
        {
        case SectionsController.SectionId.SCENES_MAIN:
            break;

        case SectionsController.SectionId.SCENES_DEPLOYED:
            break;

        case SectionsController.SectionId.SCENES_PROJECT:
            break;

        case SectionsController.SectionId.LAND:
            break;

        default:
            throw new ArgumentOutOfRangeException(nameof(id), id, null);
        }

        return(result);
    }
Example #5
0
 protected void RequestOpenSection(SectionsController.SectionId id)
 {
     OnRequestOpenSection?.Invoke(id);
 }