コード例 #1
0
        public ShellViewModel([Import] IDialogManager dialogManager, [Import("ApplicationName")] string appName)
        {
            DisplayName = appName;
            Dialogs     = dialogManager;

            //ActivateItem(Items.First(i => i.IsEnabled));
            CloseStrategy = new ApplicationCloseStrategy();
        }
コード例 #2
0
        public FolderListViewModel()
        {
            CloseStrategy = new ApplicationCloseStrategy();

            ManageObjectLifetime = false;
            DisplayName          = "Folder list";
            RefreshFolders();
        }
コード例 #3
0
        public MainFormViewModel()
        {
            CloseStrategy = new ApplicationCloseStrategy();
            try
            {
                UseLongNameEntities = Convert.ToBoolean(ConfigurationManager.AppSettings["UseLongNameEntities"]);
            }
            catch (Exception)
            {
                UseLongNameEntities = false;
            }

            new UpdateViewModel();
        }
コード例 #4
0
 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();
 }