public ShellViewModel([Import] IDialogManager dialogManager, [Import("ApplicationName")] string appName) { DisplayName = appName; Dialogs = dialogManager; //ActivateItem(Items.First(i => i.IsEnabled)); CloseStrategy = new ApplicationCloseStrategy(); }
public FolderListViewModel() { CloseStrategy = new ApplicationCloseStrategy(); ManageObjectLifetime = false; DisplayName = "Folder list"; RefreshFolders(); }
public MainFormViewModel() { CloseStrategy = new ApplicationCloseStrategy(); try { UseLongNameEntities = Convert.ToBoolean(ConfigurationManager.AppSettings["UseLongNameEntities"]); } catch (Exception) { UseLongNameEntities = false; } new UpdateViewModel(); }
public ShellModuleViewModel() { CloseStrategy = new ApplicationCloseStrategy(); // Uncomment to display the control that has focus and write to debug window the control type that has focus //FocusHelper.Start(); }