iam new to wpf .i am having a two forms(windows)
i have button and listview in first form if i clicked the button "add" in first form the second form is opened.
the second form contain two textboxes and two comboboxes and two buttons(save and cancel) .I enter the values in the second form and if i clicked the button "save" in second form the entered values in the second form is to be save in the first form listview
how do i do this give some sample code?
Mohideen AK Mohammed AJPosted Dec 27, 2007, 5:14 AM
hi,
1) see, when u close the second window, the object will be disposed. so, just have a another static class with static memmbers, and get the values from the second window and store into that members and close the wndow with window result whenever user click on save button.
2) remember to open the secondwindow using showdialog();
3) so, now you can get the values of static class members from first form. and add to listview.