|
be more clear
EASY COME EASY GO
|
|
|
|
|
Then I expect you will wish to use this class[^].
It's time for a new signature.
|
|
|
|
|
I hate classes. They are boring.
|
|
|
|
|
You've posted the same question (badly) three times now. Would you please stop.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
hey,
I've two layers (logic and gui)
in gui i've some starting Form which rise a calculation (logic layer)
after the calculation is done, i want to retrieve the calculated data back to the gui layer (event handler) till this point everything is fine.
but what should i do in case and i want to retrieve the computed data to different form , from the one i started everything (starting Form) ?
the illustration of my question may be found here[^]
thanks in advance
|
|
|
|
|
You probably need to implement the Observer pattern.
Register all your forms that need updates to receive data change updates.
|
|
|
|
|
You mean to implement controller which control the whole application ?
|
|
|
|
|
There are many ways to achieve this.
One simple and effective way is to use/define class and create methods
which contains your logic.
Perform all your operations and store result in the class itself.
(using class member variables and methods)
And use the class object as navigator.
(You can pass class object from one form to
another using session, application object, etc...)
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
but how do i pass this kind of object ?
from logic layer back to gui layer i retrieved it by delegate event (extend EventArgs class), but the question is how do i pass it within the gui layer without accessing the updated controls in the other form...
i was thinking to implement some access methods (as a control setters) in the other form, and through them i'll update requested controls with the calculated data, but i'm not sure about this solution
|
|
|
|
|
|
hi all
i wanna have an xml creator (that will recive some Primitive data and & create a file & put it generated xml data)
is there any class to do this for me?
or i have to implement a class myself ?
any opinion or advice????
|
|
|
|
|
I don't think there is such think exists.
Better way is to use xml editor (best is XMLSpy) and then
incorporate your xml file in Visual Studio.
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
You probably need to use the XmlWriter[^] class.
It's time for a new signature.
|
|
|
|
|
XmlDocument? DataSet? Both have methods to save your data as XML.
Cheers
I don't like my signature at all
|
|
|
|
|
Roll your own. I generally use XmlDocument.
|
|
|
|
|
If you're familiar with LINQ and you're not restricted to .Net 2.0, then XDocument should rock your XmlDocument world.
Just an irritated, ranting son of ... an IT guy.
At your trolling services
|
|
|
|
|
thank you for your attention
but i am using vs 2005 .net 2.0
thanks anyway
i really love this site with its responsible people
|
|
|
|
|
hi all
i have a mdiChild and i want it to be transparent
but it does not work when i set it`s opacity to 0.2 or any thing else until make it`s parent opacity to 0.2
what should i do to do this without setting the parent opacity?
thanks in advance
|
|
|
|
|
I don't think transparency will work in MDI application.
That may be the only reason for not working the opacity.
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
thanks but i rely want to have fade in fade out forms
may i should use forms "none mdichild " but it may take my time and consuming problem any other opinion or advice?
|
|
|
|
|
It is possible to 'contain' one form inside another.
Try this:-
Start a new Windows Forms project, add a button to the default form and attach the following code to the Click event handler.
private void btnForm_Click(object sender, EventArgs e)
{
Form newForm = new Form();
newForm.TopLevel = false;
newForm.Parent = this;
newForm.Visible = true;
newForm.Location = new Point(10, 10);
newForm.Size = new Size(this.ClientSize.Width - 20, this.ClientSize.Height - this.panel1.Height - 20);
newForm.BackColor = Color.Bisque;
newForm.FormBorderStyle = FormBorderStyle.None;
newForm.Dock = DockStyle.Left;
this.Controls.Add(newForm);
}
you will find that newForm is contained within the default form.
I have not tried it, but I'm pretty sure that you could alter the opacity of newForm .
How effective this will be as a solution in your case will depend on how much of the MDI goodness you need to use. It could involve a lot of code - tracking child forms, which has focus etc. etc. etc.
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.”
|
|
|
|
|
|
I want to read file the colluction and add it in dictionary with key and value ,C#
thanks.
|
|
|
|
|
I want to fill in dictionary from table C#
thank you for your idea .
|
|
|
|