下面是一段J#代码,我该如何修改才能在C#中顺利编译呢?多谢! #region 通讯线程
public class InnerThread extends Thread
{
private String strType = "";
private DlgUpgradeProc frmParent = null;
public InnerThread(DlgUpgradeProc frmParent)
{
this.strType = strType;
this.frmParent = frmParent;
this.setName("DlgUpgradeProc$InnerThread");
}
public void run()
{
this.frmParent.lockForm();
this.frmParent.execUpgrade(); //Add by chenbo 2005/01/05
recBul();
//Add end this.frmParent.unlockForm();
}
}
#endregion #region 执行通讯
public void execComm()
{
InnerThread innerThread = new InnerThread( this);
innerThread.start();
}
#endregion
public class InnerThread extends Thread
{
private String strType = "";
private DlgUpgradeProc frmParent = null;
public InnerThread(DlgUpgradeProc frmParent)
{
this.strType = strType;
this.frmParent = frmParent;
this.setName("DlgUpgradeProc$InnerThread");
}
public void run()
{
this.frmParent.lockForm();
this.frmParent.execUpgrade(); //Add by chenbo 2005/01/05
recBul();
//Add end this.frmParent.unlockForm();
}
}
#endregion #region 执行通讯
public void execComm()
{
InnerThread innerThread = new InnerThread( this);
innerThread.start();
}
#endregion
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货