Esempio n. 1
0
 /// <summary>
 /// initialize instance
 /// </summary>
 /// <param name="win">object bind window</param>
 /// <param name="engine">script engine</param>
 /// <param name="systemName">system name</param>
 public XVBAWindowObject(
     System.Windows.Forms.IWin32Window win,
     XVBAEngine engine,
     string systemName)
 {
     this.myParentWindow = win;
     this.myEngine       = engine;
     strSystemName       = systemName;
 }
Esempio n. 2
0
 /// <summary>
 /// Initialize instance
 /// </summary>
 /// <param name="engine">script engine</param>
 /// <param name="style">error type</param>
 /// <param name="methodName">Name of script method</param>
 /// <param name="ext">Exception instance</param>
 public ScriptError(XVBAEngine engine, ScriptErrorStyle style, string methodName, Exception ext)
 {
     myEngine      = engine;
     intStyle      = style;
     strMethodName = methodName;
     myException   = ext;
     if (ext != null)
     {
         strMessage = ext.Message;
     }
 }