代码乱了(靳如坦的技术blog)

专注于.net,c#,Ajax、Sql Server、SmartClient等相关的开发
posts - 151, comments - 775, trackbacks - 13, articles - 2
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

VM.xPort.ExcelClient XXX备忘

Posted on 2011-05-05 00:53 代码乱了 阅读(68) 评论(0) 编辑 收藏
去掉ExcelConnection类中的几个构造函数中licenseManager.V
erify()代码

去掉 ExcelConnection.Open方法中的抛出异常:

Open方法修改后的代码应该是 

public override void Open()
{
    
try
    {
        
string str = y.d(this.GetType().AssemblyQualifiedName);
        
if (str == null)
        {
        }
        
if (y.c(str) != y.n)
        {
        }
        
this.l = ConnectionState.Connecting;
        
this.a(this.i, this.p);
        
this.l = ConnectionState.Open;
    }
    
catch (Exception exception1)
    {
        ProjectData.SetProjectError(exception1);
        Exception exception 
= exception1;
        
this.l = ConnectionState.Closed;
        
throw;
    }
}