Initialize() public method

public Initialize ( string dbFilePath ) : DirectoryInfo
dbFilePath string
return DirectoryInfo
Esempio n. 1
0
 public MainWindow(string dbFilePath)
 {
   InitializeComponent();
   m_viewModel = new AllFederationsViewModel();
   DirectoryInfo dirInfo = m_viewModel.Initialize(dbFilePath);
   DataCache.MaximumMemoryUse = 3000000000; // 3 GB, set this to what fits your case
   bool addedFd = false;
   if (dirInfo != null)
     addedFd = AddFederation(dirInfo);
   if (addedFd == false)
     base.DataContext = m_viewModel;
 }
Esempio n. 2
0
        public MainWindow(string dbFilePath)
        {
            InitializeComponent();
            _dbFilePath = dbFilePath;
            m_viewModel = new AllFederationsViewModel();
            DirectoryInfo dirInfo = m_viewModel.Initialize(dbFilePath);
            //DataCache.MaximumMemoryUse = 3000000000; // 3 GB, set this to what fits your case
            bool addedFd = false;

            if (dirInfo != null)
            {
                addedFd = AddFederation(dirInfo);
            }
            if (addedFd == false)
            {
                base.DataContext = m_viewModel;
            }
        }