This sounds like a case where you'd want a presenter class which was responsible for populating and maintaining both forms with the same data. Then you could expose the button click event from your form, and hook your presenter up to handle it. From here you can choose to update whatever form you want, in whatever way you want.
This sounds like a case where you'd want a presenter class which was responsible for populating and maintaining both forms with the same data. Then you could expose the button click event from your form, and hook your presenter up to handle it. From here you can choose to update whatever form you want, in whatever way you want.
For example: public class MyForm1 : Form, IMyForm1 { ... // Bunch of other stuff public event onButtonClick; } public class MyPresenter { public static void Main() { ... // Other stuff myForm1. OnButtonClick += new EventHandler(ButtonHandler); } private void ButtonHandler(object sender, EventArgs e) { // Add item to form1 ... // Add item to form2. Eg: form2.
AddListItem(...); } } The idea of having a presenter is that you have a centralised location for logic relating to those forms, so the forms can be as thin as possible, and they don't even have to know about each other. Hope that helps. Give me a shout if I've missed the point or need to clarify anything I've said.
You will need to either create a public method in Form1 to add the values, or expose the listview as public from Form1. Maybe something like public void AddToListView(string fname, string lname) { //add values here to ListView }.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.