1.C_backupTPForm.cs
private void C_B_After_Click_for_nodecheck(object sender, TreeViewEventArgs e){
DirectoryInfo rootDir = new DirectoryInfo(e.Node.FullPath);
DirectoryInfo[] directories = rootDir.GetDirectories();
int i = 0;
foreach (DirectoryInfo directory in directories)
{
if (e.Node.Nodes[i++].Checked == true)
{
AL_ftp_filepath.Add(ftp_filePath.ToString());
}
}
}
==================================================== ========================== 2.C_BackupTPForm.cs
private void C_B_backupNowButton_Click(object sender, EventArgs e)
{
*********** C_B_After_Click_for_nodecheck(sender,);************// I wanna call this function here but, I can't
C_R_treeViewShow();
}
同一个项目中有2个类。每个类中都有每个功能。我想打来C_B_After_Click_for_nodecheck(object sender, TreeViewEventArgs e)
电话private void C_B_backupNowButton_Click(object sender, EventArgs e)
。但是,它有一个问题TreeViewEventArgs e
。因为C_B_backupNowButton_Click
有另一种类型EventArgs
。有没有调用函数的方法?