I have two forms, one of them I have:
namespace J13_Rouparia_CS
{
public partial class frmMain : Form
{
public static int LocPesq;
public static string peqNume;
public static string peqArti;
public void UpdatePesquisa()
{
switch (LocPesq)
{
case 1:
txtSRnum.Text = peqNume;
txtSRartigo.Text = peqArti;
break;
case 2:
txtELnum.Text = peqNume;
txtELartigo.Text = peqArti;
break;
case 3:
txtSLnum.Text = peqNume;
txtSLartigo.Text = peqArti;
break;
}
}
}
}
On the other I'd like to run UpdatePesquisa()
, using frmMain.UpdatePesquisa()
, but the UpdatePesquisa
method does not appear in the list. How can I resolve this?