【发布时间】:2020-01-28 14:56:01
【问题描述】:
我有一个 Module.cs,我想在单击按钮时运行模块内部的 void。我怎么称呼虚无?
模块.cs:
public void CreateInventorApplication()
{
// İnventorün Yüklenmesini Bekle
while (!InvApp.Ready)
{
System.Windows.Forms.Application.DoEvents();
}
DefaultCaption = InvApp.Caption;
InvApp.Visible = true;
WatchTimer.Enabled = true;
StatusType = StatusTypeEnum.Online;
StatusMessage = "InventorPreparing";
}
Form1.cs:
private void button1_Click(object sender, EventArgs e)
{
}
【问题讨论】:
-
您想从您的表单按钮单击处理程序中调用 CreateInventorApplication 方法吗?你的问题不清楚。同时提供 Module.cs 中的代码
-
是的,我想调用 CreateInventorApplication 方法