Skip to content

Instantly share code, notes, and snippets.

@BrianJVarley
Last active December 18, 2015 18:39
Show Gist options
  • Save BrianJVarley/7e663b21e8a474b184b1 to your computer and use it in GitHub Desktop.
Save BrianJVarley/7e663b21e8a474b184b1 to your computer and use it in GitHub Desktop.
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