Last active
December 18, 2015 18:39
-
-
Save BrianJVarley/7e663b21e8a474b184b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MongoDBApp.Views; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
namespace MongoDBApp.Services | |
{ | |
class DialogService : IDialogService | |
{ | |
Window productView = null; | |
ProductView _productView; | |
public DialogService() | |
{ | |
_productView = new ProductView(); | |
} | |
public void CloseDetailDialog() | |
{ | |
if (productView != null) | |
productView.Close(); | |
} | |
public void ShowDetailDialog() | |
{ | |
_productView.ShowDialog(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment