Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WindowDialogService : IDialogService
- {
- public string OpenFile(string filter)
- {
- var dialog = new OpenFileDialog();
- if(dialog.ShowDialog() == true)
- {
- return dialog.FileName;
- }
- return null;
- }
- public void ShowMessageBox(string message)
- {
- throw new NotImplementedException();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement