private void OnOrderEditViewModelClosed(object sender, EventArgs e)
        {
            var orderEditViewModel = sender as OrderEditViewModel;

            if (orderEditViewModel != null && orderEditViewModel.ModalResult)
            {
                RepositoryProvider.Dispose();
                RepositoryProvider = ServiceLocator.GetInstance <IRepositoryProvider>();
                Search();
            }
        }
Esempio n. 2
0
 public void Dispose()
 {
     _Provider.Dispose();
     ServerTester.DeleteFolderRecursive(_Name);
 }
Esempio n. 3
0
 public void Dispose()
 {
     _Provider.Dispose();
     ServerTester.DeleteRecursivelyWithMagicDust(_Name);
 }
 protected override void OnClosed()
 {
     base.OnClosed();
     RepositoryProvider.Dispose();
 }