|
seperate the metadata and apply all the patterns u know.
:=)
|
|
|
|
|
|
u should put the metadata in the database and use a builder pattern to build your objects.if u want relationships u should use martin fowlers accountability pattern and if u want a singleton on your metadata u must use flyweight pattern.
it seems like u got to use many patterns.The fact is when it comes to modify your program u only change the metadata than everything is fine.
u should visit www.adaptiveobjectmodel.com and also Chris lasater in this forum is taşking about this topic which might help u.
PS:Also in vs 2005 have look at domain specific languages.
|
|
|
|
|
What I am getting at is the idea of not having to change the "code" when the requirements change is a false one. You would still have to change some sort of meta data in order to satisfy the changing requirements. At the end of the process the possibilities for introducing bugs and not delivering what the client actually wants is more or less the same.
It is not a silver bullet solution.
|
|
|
|
|
This is true, Colin. But what adaptive solutions do offer us is a way to make applications more configurable (regarding workflow) to the end users. To my knowledge there is no end-to-end solution that meets all needs, simply because those needs are more directly defined by the business requirements. However, since business requirements change frequently, making immutable code flow logic leaves very short lives for code. Even the online industry is feeling the need to configure dynamically: if you are a subscriber to most web portals like Yahoo or MSN you have a user configurable home page where you can decide which items of interest you would like to display on your page. Most portal technologies are indirectly pointing us to a more adaptive model, simply because they are configurable by end-users or power-users.
I see adaptive technologies like Adaptive Object Modeling in the same light as a web portal: some functionality is needed to be coded by developers, like database and business logic, but where and when this logic is implemented should be (following business trends) decided upon by business experts, not you and I as developers. Some adaptive models incorporate the non-meta-data into thier models tightly coupled with thier meta-data, which is one way to do it, but I prefer to let the EUD(end user developer) have the hand in how business data is handled, and simply allow the AOM framework to give the actual implementation of when and where back to business experts (which most developers don't have the bandwidth to be).
Chris Lasater
http://www.geocities.com/lasaterconsult
|
|
|
|
|
|
I have written an Outlook Add-In that has a number of buttons on it as well as a popup menu and the strangest thing is happening.
When debugging the Add-In with Outlook loaded as the debugging application, the buttons load and all of their respective click handlers work. For now each has a "Hello world" type message when it is clicked.
If I leave Outlook running for a few minutes all of the handlers except one stop working!!!
Anyone got a bright idea why this would happen?
|
|
|
|
|
Wild guess, but maybe, just maybe, there is some remoting going on and the server object's lease gets expired? I don't know how you can control that though.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi.
I am new to the .NET Framework and to the Enterprise Library. I was wondering if the Enterprise Library facilitates developers in implementing different acces levels, e.g.: an administrator will be able to view usernames&passwords, while a customer in the development department will not have such access.
Thank you,
Elena
|
|
|
|
|
I might have misunderstood how to use the enum, but this is what i want to do. I would like to have a Font class with an enum in it for different fonts, so all you would have to do to access the font would be to type MyFont.Fonts.CoolFont;
Now when I try to do this enum I can't get around the fact that it needs to be of a certain type.
But I'm pretty sure that you can store any object in the enum. So how do I do this?
|
|
|
|
|
No thats not possible with an enum. Enums can only contain certain numeric values. To do something like you want you will need a class with some static fields/properties:
public class MyFonts {
public static Font CoolFont = new Font("Blubb", 10);
public static Font NastyFont = new Font("Courier", 14);
}
This is only a sample. Instead of public fields you should make properties with some kind of factory behind them (instantiate them when you need them).
|
|
|
|
|
I found an articles:
http://www.codeproject.com/csharp/DocumentatorMacros.asp
It really cool by providing mechanism to faster the code writing process.
But I want more: when you type some characters, it will suggest some keywords that might fit your need.
For example, type "p", so it show a list of "public, private, protected, ..."
So how do I get start?
By the way, can it be done in C#?
|
|
|
|
|
I'm trying to measure a string for printing on a printer using System.Drawing.Printing. Because I need to adjust the layout dynamically, I need to measure strings to calculate the page sizes and such before I actually get to printing the pages.
Here's the catch: I don't have a Graphics object to measure the string with until I'm actually processing a page for printing!
Is there any way to measure strings without a Graphics object, or a way to get a Graphics object (at least temporarily) for printing, before the PrintPage events?
Thanks in advance.
|
|
|
|
|
I just found something really cool!
PrintDocument.PrinterSettings.CreateMeasurementGraphics() does EXACTLY what I need!
|
|
|
|
|
Helo
Need Help,Iam new to c#,
How can i merge columns and rows in Data Grid Same like Vb6. flex grid.
|
|
|
|
|
I need a way to create a hook that moniters both the mouse and keyboard input globally. Any ideas.
Using C#
I have seen some other articles, but they are much more complex than I need.
All I really need the program to report is the mouse's coordinates(x,y) and ANY key that is pressed, including Ctrl+S or whatever.
Thanks for any help or guidance.
|
|
|
|
|
What about This. It hook the keyboard, and mouse event as well.
|
|
|
|
|
My application allow user press Ctrl + S to save changes to document.
But how can I get this event?
|
|
|
|
|
You can subscribe to your form's KeyDown event. Then using the KeyEventArgs parameter to parse out what key was pressed.
If for some reason this isn't enough information for you, just let me know.
/\ |_ E X E GG
|
|
|
|
|
You can find a lot of example, and complete code/components in Here
|
|
|
|
|
Use the Shortcut property of the menu item in your main menu. That way it'll show up there too.
If you have a main menu, that is.
|
|
|
|
|
I think we have to check if the S is press while Ctrl is pressing.
It confuse me!
|
|
|
|
|
There's a setting in the main menu object properties that lets you choose from like a hundred different key combinations, Ctrl+S is one of them.
Otherwise, you can set a KeyDown event, and do this:
<br />
private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)<br />
{<br />
<br />
if(e.Modifiers == Keys.Control && e.KeyCode == Keys.S)<br />
{<br />
}<br />
}<br />
<br />
|
|
|
|
|
reinux, thank you for your helping.
I think that is what I need.
|
|
|
|
|
I'm trying to implement a module that transmits custom objects through net(between tcp clients), I'm familiar with such thing in Java(ObjectInputStream and ObjectOutputStream). My question is: is there are something like that in C# and how to use it?
Thanx in advance, Evgeny
evgenyus
|
|
|
|