我有一个表单 (EmployeeForm
),它继承自部分类表单 (MainForm
)。在 MainForm
内部,我有一个方法 (SaveSomething
),我想要调用它。
我该如何实现呢?
using SomeLib;
namespace FooEmployee
{
public partial class EmployeeForm: MainForm
{
private void dgv_DoubleClick(object sender, EventArgs e)
{
SaveSomething();
}
}
}
namespace SomeLib
{
public partial class MainForm: Form
{
private bool SaveSomething()
{
}
}
}