private static PenetrationVM loadInstace( GroupByTaskModel penModel, KeyinOptions options) { isDebugMode_ = options.IsDebug; if (PenConfigVariables.LogFolder.IsDefined) { Logger.setLogFolder(PenConfigVariables.LogFolder.Value); } if (PenConfigVariables.Log.IsDefined) { Logger.IsActive = bool.Parse(PenConfigVariables.Log.Value); } Logger.Log.Info(new string('=', 22) + " LOAD " + new string('=', 22)); instance_ = instance_ ?? new PenetrationVM(penModel); instance_.loadContext(); return(instance_); }
public static PenetrationVM getInstance( Bentley.MstnPlatformNET.AddIn addin, KeyinOptions options) { addin_ = addin; return(loadInstace(new GroupByTaskModel(addin), options)); }