|
Greeting All,
I need to switch between calender type at Regional and Language options,
Any one has an example or link that define that
Thanks for all
jooooo
|
|
|
|
|
kindman_nb wrote: I need to switch between calender type at Regional and Language options,
I wouldn't be very happy if some application changed my regional options - it would upset all other applications on my system!
Having said that, there's an example on doing so here[^]
I are Troll
|
|
|
|
|
I have a project where the data is intended to be hierarchical in nature. The obvious solution seemed to be to create a hierarchical set of domain objects: when you instantiate the root object (with its key) it goes to the database to get its properties and a list of children. It then instantiates a child object for each and maintains them in a collection. As each child object is instantiated the process repeats itself recursively.
All well and good. Except it doesn’t follow the principles of SOLID: these domain objects contain data access code. What is the correct design (or design pattern) here?
- Do I ignore SOLID in this case?
- Have a parallel hierarchy of data access helper objects (one for each domain object)?
- Do I keep all the data access code in the object that created the root domain object (ensuring it is thread-safe) and reference it from the domain objects using callbacks?
- Encapsulate the data access code in a thread-safe singleton helper?
- Is my basic approach flawed?
- Something else?
(The database hasn’t been designed yet, and the domain objects will need to be able to save changes ... more data access code. These domain objects will be accessed a number of ways including via a treeview in the UI.)
Surely this is something that must have come up many times before.
|
|
|
|
|
If you implement the children objects as interfaces (and you should, for the D in SOLID) then you can just leave them as placeholders until they are accessed in the tree.
I have also worked on a couple projects where you push an IDataAccessSomethingOrOther into a presenter or controller layer. As the view events are raised that require loading, methods on the IDataThingyIMentionedEarlier are invoked by the presenter/controller that would load those child objects up.
My advice would be to keep your data out of your model objects.
Cheers,
|
|
|
|
|
Hi TCMMJ,
You appear to have provided an answer to an entirely different thread here.
|
|
|
|
|
Really? Are you seeing it wrapped across the forum page?
Maybe I'm seeing it wrong, but I think I contributed to part of the answer.
|
|
|
|
|
Sorry, I think your right, the forum was wrapping, making your answer appear under my question - bizzarre??
|
|
|
|
|
Hi,all
I am rebuilding an existing application and would like to know more about using net remoting. The application is currently a windows forms application (Net 3.5) that talks directly to database using ADO. I would like to know if any performance gains can be expected if I were to switch from the existing approach and build a client server type application? Clients would hold the application GUI and use NET remoting(tcp channel, binary serialization) to talk to a single server application instance that would handle database operations (N-1). The whole system would be deployed in an enterprise environment ( Database is in one, central location with several other physical locations connected to it via VPN ).
I hope that was clear and thanks in advance for your help.
|
|
|
|
|
esparagus wrote: I would like to know if any performance gains can be expected
A difficult question to answer without knowing more details. If anything you should see performance remain the same or honestly drop slightly since remoting adds another layer that must be navigated.
.net remoting is depricated, you should be learning WCF, which can also use TCP bindings, not just HTTP.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I vote for WCF as well -- I'm just learning it now.
|
|
|
|
|
A customer has a problem with our C# desktop app. When he tries to use a part of the app that consumes a web service, this exception appears:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
My first thought was that the customer's .NET installation must have been bad and a required file might be missing, but I got him to check and the System.Web.Services.dll is found in his C:\Windows\Microsoft.NET\Framework\v2.0.50727 folder as expected.
I'm out of ideas having never come across a bug like this before. How should I proceed?
Thank you for any help!
|
|
|
|
|
The only two things that spring to mind are:
1. Is the System.Web.Services.dll registered in the GAC?
2. It might not be the System.Web.Services.dll that is the problem but rather 'or one of its dependencies' as in the error message.
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.”
|
|
|
|
|
Reinstalling the .Net framework might be the easiest fix.
|
|
|
|
|
Thanks. I'll ask the user to do that and see what happens
|
|
|
|
|
How To Restrict textbox control for numaric key in vb .net
|
|
|
|
|
Try This..
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (char.IsDigit(e.KeyChar))
e.KeyChar = (char)(0x00);
}
Rajesh B --> A Poor Workman Blames His Tools <--
|
|
|
|
|
Use a MaskedTextBox instead or maybe a NumericUpDown control.
|
|
|
|
|
Go and visit the VB Forum, strange that there is someone asking the same question over there!
You two individuals on the same course / doing the same homework / working on the same thing?
|
|
|
|
|
Hi,
Can any one tell where we can use generics to gain performance (except collections) in .net projects with WCF services.
Thanks and Regards,
Kalyan
|
|
|
|
|
Implementing algorithms like a simple stack using generics have shown a gain in performance.
|
|
|
|
|
Generic would always increase performance
If you avoid using generics then you must need to
either type cast or apply boxing and unboxing which
ultimately degrades performance.
To evaluate performance (To get idea about benefits of generics)
http://csharpfeeds.com/post/1468/Use_Generics_to_improve_performance.aspx[^]
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Is there any other uses other than mentioned above.
|
|
|
|
|
No man.
That is why generics are used.
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
|
Hi,
We have developed a C# .NET application and one of our customers got this error message when starting the application "Runtime Error! C:....R6002 - floating point support not loaded". It was on Windows 7 and he could not start the application this time. This issue has only been seen once, the customer has not had any problem at all with the application besides this issue.
This fault has never been seen after that and we could not reproduce this issue. Our application is run on many different laptops.
I must give the customer an explanation but I am not sure. It had been easier if the error always occured.
Best regards
Mac
|
|
|
|