-1
votes
3answers
71 views

Best way to transfer the data between layers [closed]

I would like to know the best way to transfer the data between layers ( ex: Custom classes, Dataset, DataReader ..). Let us consider MVP design pattern. I would like to know the best way to transfer ...
0
votes
6answers
75 views

expose a referenced type (class) without need for additional reference

I have a layered system of .dlls between my application, where the lowest level has a class that provides certain functionality - an instance of this class can be received through a GetClass() ...
0
votes
1answer
65 views

Adding an Existing Annotation Layer

My program's purpose is to go through every .mxd file in a given directory, delete their old and broken annotation layers, and add in new ones for specific feature classes. The old annotation sources ...
0
votes
2answers
109 views

c# layering two arrays

I am trying to create a sort of "You sunk my battleship" game. So far I have two arrays: 1. The board (Table) -- the surface to play on 2. the ship (Avion) -- in this case an airplane What I am ...
0
votes
5answers
89 views

My Ui will create Business Objects in every use? or not?

Trying to build a basic 3-layer architecture in my new application suite. For first time i want to start applying best design practices (like IoC/DI e.t.c). My UI layer will have to create a BLL ...
0
votes
3answers
986 views

Drawing to a new “layer” in C#

Building a little paint program and am trying to incorporate the concept of layers. I'm using a PictureBox control to display the image, and getting the Graphics object from the image being displayed ...
0
votes
1answer
80 views

Calling event between projects ASP.net MVC

I have an ASP.NET project which is divided into 3 layers: Filter, Filter.Data and Filter.Task Filter has a controller which calls the Filter.Task who calls the models in Data. Task return the data to ...
4
votes
1answer
1k views

2D Tile-Based Game Engine - Layer Management in XNA with C#

I'm going to build an advanced 2D Up-Down RPG. It'll be a C# + XNA version of my existing 2D Flash RPG Engine ( Adobe Air ). Well, in Flash Pro i've simply used different MovieClips for the ...
-1
votes
2answers
152 views

File imports/exports: What layer?

When you have C# classes (could be any other Oriented Object language) used to perform import and export of files (such as CSV, Excel, Text, proprietary formats, ...), in which layer (Data Access ...
2
votes
1answer
3k views

3-layer architecture - passing data between layers

Trying to implement 3-layer (not: tier, I just want to separate my project logically, on one machine) architecture I've found so many different approaches that I'm confused, what's the best way (if ...
2
votes
2answers
638 views

N-tier architecture transacions handling

I'd like to implement N-tier architecture in my WinForms applications to separate (just logically - in one project) business logic from data access, however I have some doubts about using transacion ...
0
votes
1answer
158 views

DDD: Layer for reporting (View Model/Report Model)

I have a Model and a Service for Reporting. It is very simple: public class ReportService { public Report Generate(){//} } public class Report { string Title; List<ReportField> ...
1
vote
2answers
508 views

LINQ to SQL DataContext Is Not Updating ConnectionString

I am working on a C# .NET application that uses LINQ to SQL for database access. Unfortunately, I have spent the past 4 hours trying to get the application to work on my home network. I have brought ...
0
votes
0answers
282 views

C# event handler silverlight?

simple question here about event handlers. I'm passing events up through layers of user controls in silverlight (all inheriting the event from a base class), the 'listeners' hold the following format ...
2
votes
5answers
3k views

SetPixel is too slow. Is there a faster way to draw to bitmap?

I have a small paint program that I am working on. I am using SetPixel on a bitmap to do that drawing of lines. When the brush size gets large, like 25 pixels across there is a noticeable performance ...
0
votes
2answers
817 views

C# Multi-panel/layer winform application

I've been designing a pretty complicated avionics application. The thing is, it has many menu buttons to be clicked (12 to be exact) and each one of them perform a different action. For instance, one ...
2
votes
2answers
1k views

How to combine an array of png images like layers using C#?

I have an array of images named image_<somenumber>_trans.png All these images have transparent areas. The idea is that when put one on top each other they will form a nice looking image. But ...
0
votes
1answer
152 views

DataProvider Switch / Singleton ?

I have a website and want to step over from MySql to SqlServer. In my website I use a BE layer (Business Entities), BLL (Business Logic Layer), DAL (Data Access Layer), and of course a Web Layer ...
2
votes
3answers
228 views

Questions about IoC

I am studying about high coupling between classes, specifically IoC. I would like to ask some questions: I am using Ninject; which layer should I put the dlls Ninject When I create a setup to send ...
0
votes
1answer
843 views

Using TransactionScope in Service Layer for UnitOfWork operations

Is my approach right to bundle all 3 dataprovider.GetXXX methods in a TransactionScope in the service layer as UnitOfWork? Would you do something different? From where does the TransactionScpe ts ...
1
vote
1answer
548 views

Presentation layer architecture in an enterprise application

At our company we are developing an application that will consists of several modules. The architecture is pretty much defined but I have seconds thoughts about the presentationlayer and I would ...
8
votes
4answers
10k views

WinForm UI components layer order

When we add any UI or container in WinForms, the later added component comes over the earlier added components, we can say it is in a higher layer. How to change that layer order or component order ...
0
votes
2answers
524 views

What graphic format can I use for layers?

I need to be able to take multiple images and save them to a file that can then be read by a graphics program like Photoshop or Illustrator and edited. I need to be able to do this in a C#/.Net ...
5
votes
5answers
6k views

Presentation, Business and Data Layer

I just started programming in C# and was reading about dividing your application / website into the three different layers was the best practice but I am having a hard time understanding exactly how. ...
3
votes
3answers
812 views

Three Layered Web Application

Is it OK - best practise wise - to use the second layer to redirect the user? For example: public static void ForceLogin() { HttpCookie cookie = HttpContext.Current.Request.Cookies[cookieName]; ...