public UserInterface(int id, string name, string display, string page, CoreConstants.Module module, CoreConstants.PageType pagetype, CoreConstants.UserInterface linkUI) { this.Initialise(id, name, display, page, module, pagetype, linkUI); }
private void Initialise(int id, string name, string display, string page, CoreConstants.Module module, CoreConstants.PageType pagetype, CoreConstants.UserInterface linkUI) { this.Id = id; this.Name = name; this.Display = display; this.Page = page; this.Module = module; this.PageType = pagetype; this.LinkUI = linkUI; if (pagetype == CoreConstants.PageType.Page) { this.Region = CoreConstants.Region.MainRegion; } else if (pagetype == CoreConstants.PageType.ContentPage) { this.Region = CoreConstants.Region.ContentRegion; } }
public UserInterface(int id, string name, string page, CoreConstants.Module module, CoreConstants.PageType pagetype) { this.Initialise(id, name, name, page, module, pagetype, null); }