﻿using System;
using System.Windows.Forms;

namespace ProtoScript.Dialogs
{
	class SelectBundleDialog : IDisposable
	{
		private const string kResourceBundleExtension = ".bun";
		private readonly OpenFileDialog m_fileDialog;

		public SelectBundleDialog()
		{
			m_fileDialog = new OpenFileDialog
			{
				InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
				Filter = "Bundle files|*" + kResourceBundleExtension
			};
		}

		public void ShowDialog()
		{
			if (m_fileDialog.ShowDialog() == DialogResult.OK)
				FileName = m_fileDialog.FileName;
		}

		public string FileName { get; private set; }

		public void Dispose()
		{
			m_fileDialog.Dispose();
		}
	}
}

﻿using System;
using System.Windows.Forms;

namespace ProtoScript.Dialogs
{
	class SelectBundleDialog : IDisposable
	{
		private const string kResourceBundleExtension = ".zip";
		private readonly OpenFileDialog m_fileDialog;

		public SelectBundleDialog()
		{
			m_fileDialog = new OpenFileDialog
			{
				InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
				Filter = "Zip files|*" + kResourceBundleExtension
			};
		}

		public void ShowDialog()
		{
			if (m_fileDialog.ShowDialog() == DialogResult.OK)
				FileName = m_fileDialog.FileName;
		}

		public string FileName { get; private set; }

		public void Dispose()
		{
			m_fileDialog.Dispose();
		}
	}
}

Select Bundle dialog looks for zip files
Select Bundle dialog looks for zip files
