public void Show(string[] args) { if (args == null) { throw new ArgumentNullException("args"); } if (args.Contains("-installperfcounter")) { if (perfCounter != null) { perfCounter.Install(); } } else if (args.Contains("-uninstallperfcounter")) { if (perfCounter != null) { perfCounter.Install(); } } else if (args.Length > 0) { var appGuid = new Guid(args[0]); LaunchApplication(appGuid); } else if (cfg.Client.Application != null && cfg.Client.Application != Guid.Empty) { LaunchApplication(cfg.Client.Application.Value); } else { var ws = mdlFactory.CreateViewModel <WorkspaceViewModel.Factory>().Invoke(ctxFactory(ClientIsolationLevel.MergeServerData), null); ControlKind launcher = Zetbox.NamedObjects.Gui.ControlKinds.Zetbox_App_GUI_LauncherKind.Find(frozenCtx); mdlFactory.ShowModel(ws, launcher, true); } //var ctxDebugger = mdlFactory.CreateViewModel<ZetboxDebuggerAsViewModel.Factory>().Invoke(ctxFactory()); //mdlFactory.ShowModel(ctxDebugger, true); //var cacheDebugger = mdlFactory.CreateViewModel<CacheDebuggerViewModel.Factory>().Invoke(ctxFactory()); //mdlFactory.ShowModel(cacheDebugger, true); }