layered

What's the best way to structure a project ?

Hi, I was wondering about how I should structured my projects. We have some projects that are (re)use in other projects. I mean, our data project and model project are use in one-to-many other projects. What I really what to know is how to structure this type of project, what the best way to name it ? In a standard 3-tier applicatio...

Using layered windows to create smooth window borders

We are developing a skinned app with various rounded edges on most of its windows. I am using window regions to define non-rectangular shapes, but nearly everyone objects to the jagged aliasing this causes, because pixels can only be either fully opaque or fully transparent. I've come up with a solution to this using layered windows, b...

Modules on the same layer in layered architecture

In theory in layered architecture you can have multiple modules on the same layer. Can this modules cross reference to each other? Is is possible technically, eg. using .NET? ...

passing data in an ntier application

How do you pass data to layers in an n-tier application? I have mapped out 3 different methods. A) generic .net objects generic data tables, Hashtables, generic datasets, strings, ints etc... then using the datasets to fill your business objects which get sent to the UI layer. http://dabbleboard.com/draw?b=eiu165&i=26&c=54...

N-Tiered vs N-Layered architecture/design

What does it mean by N-Tiered and N-Layered architecture/design? Is there any difference between N-Tiered and N-Layered architecture/design? If yes, what is the difference? ...

Unable to Get data from DA layer. What to do?

While dividing my C# application in layers, I have solved the problem of circular dependency among layers in the following way: using System; using System.Collections.Generic; using System.Text; using SolvingCircularDependency.Common; using SolvingCircularDependency.DA; namespace SolvingCircularDependency.BO { public class MyClass...

Window style and paint message

I created a window with WS_EX_LAYERED style, then i checked the first WM_PAINT message, I called BeginPaint to retrieve the area need to be paint, but the area i got is empty. But, when i create this window using WS_EX_LAYERED | WS_EX_COMPOSITED, i got the right area which need to be paint for the first WM_PAINT message. Why? Code fragme...

How do I get a transparent windows dialog and drawing primitives to remain on top of a window that is drawing streaming video?

I have an activeX control that contains one window that has streaming video being drawn to it. I have a separate dialog that I create in another window that I have made transparent or semi-transparent in various ways (i.e. using the SetLayeredWindowAttributes(...) along with the Layered property [for alpha blending] of the dialog or se...

With an ActiveX control in an browser window container, how do I detect when user changes tab away from activex control

I have an ActiveX control that gets placed in an IE browser container. The control creates another dialog window that has WS_POPUP and WS_LAYERED properties enabled in order to be able to use SetLayeredWindowAttributes(...) function to accomplish color keyed transparency and alpha blending on top of the control. Because the WS_LAYERE...

LAMP - Tool to create Layered PDF in PHP..

Hi Do anyone know Good and CHEAPER tool we can use to create layered PDF in LAMP? i came to know about PDFLib+PDI8 but thats €1590... but i am looking for cheaper option.. but must be same level to that PDFLib+pdi8. Thanks in advance Pravin P ...

Layered Architecture and Static Methods

I need suggestion for three layered architecture I am planning to implement. Scenario Am Working in ASP.NET c# 3.5 Environment. DLHelper: Methods to get data from database. DAL : Contains Methods which collects data from database with help of DLHelper classes. Most of the methods in this layer are not referencing any page level objec...

Where should I handle the exceptions, in the BLL, DAL or PL ?

Which is the best place to handle the exceptions ? BLL, DAL or PL ? Should I allow the methods in the DAL and BLL to throw the exceptions up the chain and let the PL handle them? or should I handle them at the BLL ? e.g If I have a method in my DAL that issues "ExecuteNonQuery" and updates some records, and due to one or more reason, ...

Magento Layered Navigation Categories

I would like the user to be sent to the category landing page when the user clicks the category in layered navigation. So instead of the user getting /category.html?cat=11, they would get /category/RedWidget.html?cat=11 when they click the RedWidget category. I found this link, but his code doesn't work. Thanks ahead of time! ...

programming language with granular method and property access

Hi, imagine something like this: import class B.*; interface A supports A.testSum { int sum( int a , int b ) access from B.calculator; testSum() { Assert(sum(1,1)==2); } ........ class B ... { void calculator() { A.sum(3,5); //ok } void someOtherMethod() { A.sum(0,3); //compile error } the idea of the "supports" is s...

Is it double work creating a data access component and business component?

I am designing my first Layered Application which consists of a Data, Business, and a Presentation layer. My business components (e.g, Business.Components.UserComponent) currently has the following method: public void Create(User entity) { using (DataContext ctx = new DataContext()) { ctx.Users.AddObject(entity); ...

Entity framework 4 in a 3 layered environment

I came across the following article and was able to setup a functional test application. Pretty straight forward although the comments related to the article gives me second throughts about using this approach. Opinions? http://aspalliance.com/1943_ASPNET_40_and_the_Entity_Framework_4__Part_4__A_3_Layered_Approach_to_the_Entity_Framew...

3-Layer Architecture Pattern

Is it OK to implement BLL and DAL using partial class this way: namespace BLL { partial class Employee { public string EmpID { get; set; } public string EmpName { get; set; } public List<Employee> GetListOfEmployees() { return DAL.Employee.GetListOfEmplyee(); } } } namespace DAL { partial...

Top level Layered window problem in minimize/restore animation

Hi, Many application are using multi-top-level windows. One of the good example is for layered window: if application need a real transparent control, the best way under MS windows is to use layered window(win32 programming, no WPF). But Layered Window must be top-level window. The problem happens during you restore a minimized applicat...

Assembly reference error with C# EF4 and a layered design.

Hi all, I'm finally getting around to checking out the latest EF release and I'm running into some troubles with my testing. So, my DAL layer holds my .EDMX file and I'm using the MS POCO template so I also have the generated .TT files and classes. I have a generic base class in the TestProject.DAL I've created that those classes deri...

Where is the filter for configurable products while caching layered navigation attributes?

I need to locate the code, where layered navigation filter (options) are build... It seems these options only come from config. products which are visible in catalog and search, but i need to change this behaviour to a new visibility state... ...