CS7036没有给出与'Personnels.CreerListePersonnel(string,string,string,string,string,string)的所需形式参数'identifiant'相对应的参数...而且似乎无法弄清楚原因。
这是我的子类:
public class Personnels
{
//Liste qui sera reponsable de gérer le personnel
List<Personnel> personnels = new List<Personnel>();
public void CreerListePersonnel(string identifiant, string prenom, string nom, string nomUtilisateur, string motPasse)
{
personnels.Add(new Personnel(identifiant, prenom, nom, nomUtilisateur, motPasse));
}
}
这是我在主应用中称呼它的地方:
public partial class frmLoggin : Window
{
Personnels personnels = new Personnels();
bool ouverture = false;
public frmLoggin()
{
InitializeComponent();
try
{
personnels.CreerListePersonnel();
ouverture = true;
txtUtilisateur.Focus();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + Environment.NewLine + "L'application prendra fin.",
"Attention", MessageBoxButton.OK, MessageBoxImage.Information);
Application.Current.Shutdown();
}
}
.....
再次,我对此并不陌生,不知道我是否做得正确:(
提前感谢!
我对此很陌生。基本上,我创建了一个带有子类的ac#类库,该子类具有需要在主应用程序(WPF)中调用的方法-尝试从所述子类调用方法时,我得到了...