VS2017: How to pass a list of structures as parameters from one form to another form

  • Thread starter Thread starter YigalB
  • Start date Start date
Y

YigalB

Guest
I am trying to pass a list of structures as parameters from one form to another form.

The declaration at the source form:

namespace WindowsFormsApp5
{
public partial class Form1 : Form
{
struct INDI
{
public string ID;
public string Name;
public string Sex;
public string BirthDay;
public bool Dead;
}
struct FAM
{
public string FamID;
public string type;
public string IndiID;
}
List<INDI> Individuals = new List<INDI>();
List<FAM> Family = new List<FAM>();
..........

How to refer to it on the target form?

namespace WindowsFormsApp5
{
public partial class ReportsForm : Form
{
public ReportsForm(string _name,???? _indi_list )
{
InitializeComponent();
textBox_name.Text = _name;

????

}
.....


Thanks

Yigal

Continue reading...
 
Back
Top