This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace MethodsDelegatesFieldsDemo | |
| { | |
| public class BaseClassMethod | |
| { | |
| public void DuplicateMethod() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace MethodsDelegatesFieldsDemo | |
| { | |
| public class BaseClassField | |
| { | |
| public string DuplicateField = "BaseClassField"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ul class="nav nav-tabs"> | |
| <li class="dropdown"> | |
| <a class="dropdown-toggle" data-toggle="dropdown" href="#"> | |
| Menu | |
| <span class="caret"></span> | |
| </a> | |
| <ul class="dropdown-menu" data-bind="foreach: modules"> | |
| <li> | |
| <a href="#" data-bind="text: title, click: function(data, event) { $parent.menuItemClick(data, $parent) }"></a> | |
| </li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Web.Mvc; | |
| namespace SimpleModularWebsite.Controllers | |
| { | |
| public class ModulesController : Controller | |
| { | |
| [HttpPost] | |
| public ActionResult GetModuleView(string viewName) | |
| { | |
| return PartialView(viewName); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function TabViewModel(module) { | |
| this.module = module; | |
| this.tabHeaderId = ko.computed(function() { | |
| return "tabHeader" + this.module.id; | |
| }, this); | |
| this.tabHeaderUrl = ko.computed(function() { | |
| return "#tabContent" + this.module.id; | |
| }, this); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function TabsManagerViewModel() { | |
| this.modules = ko.observableArray(); | |
| this.registerModule = function(module) { | |
| this.modules.push(module); | |
| }; | |
| this.tabs = ko.observableArray(); | |
| this.menuItemClick = function(module, viewModel) { | |
| for (var i = 0; i < viewModel.tabs().length; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ModuleViewModel(id, title, loadInTabFunction, unloadFromTabFunction) { | |
| this.id = id; | |
| this.title = title; | |
| this.loadInTab = loadInTabFunction; | |
| this.unloadFromTab = unloadFromTabFunction; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class NiGeometryData : public NiObject { | |
| public: | |
| /*! Constructor */ | |
| NIFLIB_API NiGeometryData(); | |
| /*! Destructor */ | |
| NIFLIB_API virtual ~NiGeometryData(); | |
| /*! | |
| * A constant value which uniquly identifies objects of this type. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class RefObject { | |
| public: | |
| /*! Constructor */ | |
| NIFLIB_API RefObject(); | |
| /*! Copy Constructor */ | |
| NIFLIB_API RefObject(const RefObject& src); | |
| /*! Destructor */ | |
| NIFLIB_API virtual ~RefObject(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <niobject name="NiGeometryData" abstract="1" inherit="NiObject"> | |
| Mesh data: vertices, vertex normals, etc. | |
| <add name="Unknown Int" type="int" ver1="10.2.0.0">Unknown identifier. Always 0.</add> | |
| <!-- special case for Bethesda PSysData (or NiParticlesData?) in Fallout 3 and higher --> | |
| <add name="Num Vertices" type="ushort" cond="!NiPSysData">Number of vertices.</add> |