|
OriginalGriff wrote: Maybe I'll just edit... If you find a little time?
I kind of have a deja vou...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nelek wrote: I am starting to think about inventing the days of 30 hours. I will shorten my days by 8 hours; that'll get you your 30. Time is moving too slowly for me these days.
cheers, Bill
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
I want open-source project to manage super market .
Is there any one help me?
|
|
|
|
|
I ran your question through Google Translate, and it said:
Student - Detected: I want a supermarket management project I can hand in as my own work so I don't have to do my own homework. We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
Try it yourself, you may find it is not as difficult as you think!
If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Mody_2004 wrote: I want open-source project to manage super market .
Is there any one help me? There's already a boatload of free POS-software.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
You do realize that any "open source" project you try to hand in will not look anything like the code you've been turning in? You're going to be immediately called out for not doing your own work and will fail the class on the spot or lose your job.
|
|
|
|
|
People in hell want ice water
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
how to bind all text filed with dropdownlist data selection in kendo grid,give any example
please help me
|
|
|
|
|
Member 11567959 wrote: please help me
What have you tried?
Where are you stuck?
What help do you need?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Whenever I see this, I always think of the main character in that movie, The Fly, saying "Help me! Help me!".
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hi All,
In my application i am calling one method to fetch the results from DB. In that DAL layer method i used dataadapter to fetch the results. It is working fine for one user. When multiple users are invoking the same page i am getting the error as "There is already an open DataReader associated with this Command which must be closed first." In the code i haven't used any Datareader to execute. i don't understand why i am getting this error. Can any one help me in this.
Reagrds,
Govind.
|
|
|
|
|
You have missed out an awful lot of information here. I assume that this is for a web page. I am also going to assume that you haven't disposed of your DataAdapter (or your Connection or Command if you have created one). Make sure that you Dispose of these objects as soon as you are done with them.
This space for rent
|
|
|
|
|
To add to Pete's excellent advice, the best way to do this is to put the construction of all database related items (Connections, Commands, Adapters, ...) inside a using block. That way, when the item goes out of scope for whatever reason (even if there is a failure) the object is automatically closed and disposed.
Do that, and you will never have the problem again, as well as not hogging scarce resources.
using (SqlConnection con = new SqlConnection(strConnect))
{
con.Open();
using (SqlCommand cmd = new SqlCommand("SELECT Id, description FROM myTable", con))
{
using (SqlDataReader reader = cmd.ExecuteReader())
{
while (reader.Read())
{
int id = (int) reader["Id"];
string desc = (string) reader["description"];
Console.WriteLine("ID: {0}\n {1}", id, desc);
}
}
}
}
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I almost didn't up-vote this due to your horrific brace indentation!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Philistine!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I'm with Richard on that; we Dicks need to stick together.
|
|
|
|
|
At this point in the conversation, I shall make my excuses, and leave ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Why? Are you braceophobic?
This space for rent
|
|
|
|
|
I think they may need some "private time".
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi
We have an old winforms project in c# .net framework 4.
The controls in forms of the project are not inside table layout panel.so when maximize the screens the all the controls are anchored at the left.now we are editing forms one by one using table layout panel.i just want to know is there any way before loading the form from menu can we dynamically store all controls to memory and create a table layout panel to form then is it possible to add controls back from memory to table layout panel of form? If you have any better ideas please share.the project has more than 200 forms in seperate module dlls😂.if there is no other way we continue one by one.
|
|
|
|
|
There is no built-in way to do that, nor do I even know of a tool that will do it.
AFAIK, if you want to do that with a tool, you're going to have to write it yourself.
|
|
|
|
|
Thanks for the info dave 👍🏻
|
|
|
|
|
Even if you write a tool to do so; it will never be able to guess the correct alignment.
Before changing that amount of forms, investigate "docking" too; layout is not limited to anchoring. The Ux Guide will have some hints on how and why
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
There are some ways you could attempt this, but I think ... depending on the variation in the structure/placement/anchor/dock properties of Controls in the different Forms ... that there will be no easy solution.
1. at the point you create an instance of the Form;
a. you could traverse/iterate the top-level Controls of the Form, and add them to the TableLayoutPanel ... adding them will effectively remove them from being in the ControlCollection of the Form.
b. the hard-part is deciding where in the TBLP to put the Controls. I think I'd try creating a sorted Array of Controls in left-right/top-bottom order.
Complicating factors could include Control nesting, existing use of 'Dock, etc.
Before I could estimate the extent to which this re-org is able to be somewhat automated, I'd pick two or three different Forms, and experiment.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
hello guys,
How do I write something like this?
string json = null;
Type[] types = Assembly.GetExecutingAssembly().GetTypes();
var carTypes = (from type in types
where type.IsClass && type == typeof(Car)
select type);
foreach(var carType in carTypes )
{
string typeName = carType .Name;
string jsonFile = typeName + ".json";
json = File.ReadAllText(jsonFile);
IList<Porche> cars = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Porche>>(json);
}
Here, Porche is a sub class of Car - Both "Porche" and "Car" are Class. In additional to Porche, we have Toyata, BMW, Tesla... I want to dynamically retrieve them via Reflection (avoid hardcoding)
"cars" is a list of instances of cars.
"carType" is Type.
How can I use "carType" in JsonConvert.DerserializeObject which take List<$CLASS$> as argument?
IList<someReflectionAPI(carType)> cars = Newtonsoft.Json.JsonConvert.DeserializeObject<list<<b>someReflectionAPI(carType)>>(json);
Thanks
dev
modified 4-Dec-18 19:58pm.
|
|
|
|