|
How are you able to control objects in your project with stored procedures? Not objects in database.
Without hard-coding it into your code.
|
|
|
|
|
hove82 wrote: Not objects in database.
Without hard-coding it into your code.
You're sounding like a salesman. Don't do that if you want a decent opinion.
I put objects in my database by serializing them. I put assemblies in my database as blobs, based on the source-code that's stored in a NVARCHAR. Updating the text in the NVARCHAR gives a new build-number, and there's a certain amount of builds in a release
What's the motivation behind the original question? Do you plan on using their software and looking for people with previous experience, are you evaluating idea's, or what? Without a decent list of features, it's hard to say whether or not it would fit a specific task.
Yes, it's definitely handy for those people who don't want to spend the time on building that part of the infrastructure themselves. There's room for logging-frameworks, for exception-handling frameworks, should be room for a macro/configurationmanager framework.
Is it Open Source? If yes, then why not write an article on it's use, and how it could save people time?
I are Troll
|
|
|
|
|
Now I want to know what he was talking about...
|
|
|
|
|
I am not a salesman.
I has been moved to an article ObjectPolicy.
This project is about not including certain things into project (hard-coding), but to be able to control it from a volatile source.
modified on Tuesday, September 14, 2010 2:04 AM
|
|
|
|
|
hove82 wrote: I am not a salesman.
I has been moved to an article ObjectPolicy.
My apologies, but for a split second you sounded like one. Looking back, it sounds logical that you'd be excited and enthusiastic. Good to hear that there's an article upcoming
hove82 wrote: This project is about not including certain things into project (hard-coding), but to be able to control it from a volatile source.
That's a portable, cross-platform source? You mentioned XML as a source, which could mean that it might run on Mono without any modifications. Might even work from a memory-stick.
Some people will be interested in the product, others more in how you created it, but most in both
I are Troll
|
|
|
|
|
Just to be clear, ObjectPolicy reads, interprets and executes commands written in xml, it's not standalone solution, you need to implement it in your application. It's all about mapping objects in xml with objects in your application, and issuing command against them, that's what ObjectPolicy does.
My article was deleted because I refuse to post a source code. You can download dll, or test app from here.
|
|
|
|
|
hove82 wrote: Just to be clear, ObjectPolicy reads, interprets and executes commands written in xml
It's not clear; I had to look at the XML to see what you actually meant by that.
hove82 wrote: You can downloaded it from here.
Thanks for the link, downloaded it. Looks like 's easy to use, and has a small footprint. Looks portable.
I'm not running Windows, and Linux doesn't like the precompiled version since that targets .NET 4.0. Do you need the stuff from the 4.0 framework, or does it also build under 2.0?
hove82 wrote: My article was deleted because I refuse to post a source code.
Posting an article to promote closed-source ("commercial") software would be seen as an attempt to post an advertisement without paying. If the software was open-source then you could reach a nice audience here.
Yes, there's quite some criticism at the start, and it's impossible to please everyone. And yes, I'm interested, but as a programmer - not as a customer.
I are Troll
|
|
|
|
|
I am using some things from .net 4.0, but I think it won't be too much of a trouble to make it work in 2.0.
|
|
|
|
|
hove82 wrote: What are your opinions about this project? Is it useful? Is it a good idea?
Seriously - write an article on it. You've posted this in a forum that's aimed at people asking questions, completely missing the whole article sections.
|
|
|
|
|
|
Hi guys
I have a form that has like 30 controls on them all of them have data that it loads to from a DB, is there a efficient way to only get the data or control that was modified?
Thanks
|
|
|
|
|
You might like to take a look at Masks and flags using bit fields in .NET[^].
Assign each control on your form a binary value and set a flag if it's data gets modified.
If there were less controls I would suggest an enumeration with the Flags attribute but I'm not sure (without looking it up) if an enum can handle that many.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry Minute wrote: I'm not sure if an enum can handle that many.
"An enumeration is a named constant whose underlying type is any integral type except Char".
So if you have it derive from int (the default) or uint, you get 32 flags; from long/ulong 64.
That is one for each available bit.
|
|
|
|
|
I notice that in your quote from my post you carefully avoided including the part in braces.
Probably due to my age, as others have pointed out elsewhere, I couldn't remember if enums used a sensible storage strategy or not. Which is why I said 'without looking it up'.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Only trying to help. I am convinced you would know when you looked it up, however I wanted to save you the trouble as you were concentrating on your game and/or celebrating your winnings.
|
|
|
|
|
The last time I needeed to do something like that, I built it into a data class that held all the values. The textboxs were bound to those values through properties on the data class. Each property did its validation and then set a dirty flag if the value actually changed. Once the data object serialized itself, the dirty flags were reset.
|
|
|
|
|
This particular way has the advantage of knowing which control was really modified, what i mean is that if a user has a textfield init with the text "Hello" and user erases/modifies and then retry the same value it shouldn't be marked as modified, doing this way will ensure that it has diferent data, but it seems that the vest way is to copy the init data in a structure/class for each form right?
|
|
|
|
|
manchukuo wrote: the vest way is to copy the init data in a structure/class for each form right?
That's pretty much the standard. You could also compare it against the last value that was stored in the database, but that pretty much defeats the purpose of avoiding a database call. You can also get a hash of the initial data (e.g., GetHashCode) and compare that to the hash code for the new data (this will minimize the amount of memory used and will be correct most of the time). If you combine that with dirty checking, you will have a pretty good way of minimizing data transfer.
|
|
|
|
|
mmhh i see thanks for all your time and help i will try the hash stuff
|
|
|
|
|
hello
i working on my assignment for win form app. there are 2 tables related. and now final part is to create crystal report i have created one report showing bill details it works fine there is no issure.
now i want to display amounnt in words so i have created one class and to convert number to words and again it's working fine but i am not storing this amount in words in sql database.
so in reporting how can i convert this amount in number into words?
is there any way to call my numbertoword class into crystal report?
or is there any tool in crystal report to do this?
this is my code for loading crystal report
public partial class InvoiceBill : Form
{
public InvoiceBill()
{
InitializeComponent();
}
public GenerateInvoice invRpt = new GenerateInvoice();
private void InvoiceBill_Load(object sender, EventArgs e)
{
sqlDataAdapter1.Fill(invoiceDS1 , "BillDetail");
crystalReportViewer1.ReportSource = invRpt;
invRpt.SetDataSource(invoiceDS1);
}
waiting for your kind help
|
|
|
|
|
ok it's done now
there is inbult function for this in crystal report
ToWord()
|
|
|
|
|
hi guys
how to send file with bluetooth with socket programing ?
thanks a lot
|
|
|
|
|
|
Please consider the following code fragment:
<br />
protected override void OnPaint( PaintEventArgs paintEventArgs )<br />
{<br />
Graphics grfx = paintEventArgs.Graphics;<br />
int width = this.ClientSize.Width;<br />
int height = this.ClientSize.Height;<br />
grfx.TranslateTransform( width / 2, height / 2 );<br />
I now claim that after executing the call to TranslateTransform the point 0,0 will
be the center of the screen. However, increasing y values still bring be down. That
is, the point (0,3) will be below, the point (0,0). I would like increasing y values
to bring me up the screen. Is there a way to do this, and if so, how?
Thanks
Bob
|
|
|
|
|
While I haven't actually done so, I expect there are a couple, related, ways to achieve this.
The simplest would be to append the statement:
grpf.ScaleTransform(1.0f, -1.0f);
An alternative would be to specify the entire transformation matrix (with lots of zeros, your width/2 and height/2, and a single -1 in there). In the end, I expect such matrix is what is used internally, all the XxxTransform calls simply modify said matrix (starting from a unity matrix).
|
|
|
|